From 5c0cde517f0a7e0a4150e7c891e153e9ba52677d Mon Sep 17 00:00:00 2001 From: Tunglies Date: Thu, 20 Mar 2025 06:20:19 +0800 Subject: [PATCH] fix: update system architecture retrieval method in PlatformSpecification --- src-tauri/src/module/sysinfo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/module/sysinfo.rs b/src-tauri/src/module/sysinfo.rs index d22132b0..6cf4913e 100644 --- a/src-tauri/src/module/sysinfo.rs +++ b/src-tauri/src/module/sysinfo.rs @@ -26,7 +26,7 @@ impl PlatformSpecification { let system_name = System::name().unwrap_or("Null".into()); let system_version = System::long_os_version().unwrap_or("Null".into()); let system_kernel_version = System::kernel_version().unwrap_or("Null".into()); - let system_arch = std::env::consts::ARCH.to_string(); + let system_arch = System::cpu_arch(); let handler = handle::Handle::global().app_handle().unwrap(); let config = handler.config();