mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:43:44 +08:00
fix: update system architecture retrieval method in PlatformSpecification
This commit is contained in:
parent
1b249564a3
commit
5c0cde517f
@ -26,7 +26,7 @@ impl PlatformSpecification {
|
|||||||
let system_name = System::name().unwrap_or("Null".into());
|
let system_name = System::name().unwrap_or("Null".into());
|
||||||
let system_version = System::long_os_version().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_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 handler = handle::Handle::global().app_handle().unwrap();
|
||||||
let config = handler.config();
|
let config = handler.config();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user