You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was using the tauri-plugin/os v2.0.1 in the Release condition, such as: arch() method, the app can't get the correctly sys. architection. However, in the development condition, it can be obtained correctly.
Reproduction
There are some tests with my computer, and output result:
development & building: Windows 11 x64
executing method: arch()
not set any argument, development mode, printing: x86_x64
build with i686 msvc(release mode), testing:
run in the Windows 10/11 x64: x86
run in the Windows 10/11 x86: x86
build with x64 msvc(release mode), testing:
run in the Windows 10/11 x64: x86_64
run in the Windows 10/11 x86: it not need to test.
Conclusion
From my perspective, the result should be printed the diversity value in the different systems, but it output same results.
Given the results provided, which more depend my compiling environment's ARCH. that Rust building rather than the real system environment that user run?
Expected behavior
Outputing correctly system ARCH.
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
barbyJam
changed the title
[bug] plugin/os can't get current system correctly!
[bug] plugin/os can't get current system info correctly!
Dec 9, 2024
Given the results provided, which more depend my compiling environment's ARCH. that Rust building rather than the real system environment that user run?
May the get() method is a property rather than static const.
Aha... Navigating the reference, I can see the crate's code: "\os_info-3.9.0\src\windows\mod.rs"
//method with public usingpubfnget() -> Info{
imp::current_platform()}//deeply the implementpubfncurrent_platform() -> Info{trace!("windows::current_platform is called");let info = winapi::get();trace!("Returning {:?}", info);
info
}
So, winapi should be a realtime Lib.
Okay, I think that if you can use the winapi of the other sub method, we may get the realtime of the Sys. Arch.
Describe the bug
When I was using the tauri-plugin/os v2.0.1 in the Release condition, such as:
arch()
method, the app can't get the correctly sys. architection. However, in the development condition, it can be obtained correctly.Reproduction
There are some tests with my computer, and output result:
arch()
not set any argument, development mode, printing:
x86_x64
build with i686 msvc(release mode), testing:
x86
x86
x86_64
From my perspective, the result should be printed the diversity value in the different systems, but it output same results.
Given the results provided, which more depend my compiling environment's ARCH. that Rust building rather than the real system environment that user run?
Expected behavior
Outputing correctly system ARCH.
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: