tauri-apps / tauri-apps/plugins-workspace
[bug] plugin/os can't get current system info correctly!
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### 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:
- development & building: Windows 11 x64
- executing method: `arch()`
1. not set any argument, development mode, printing: `x86_x64`
2. build with i686 msvc(release mode), testing:
- run in the Windows 10/11 x64: `x86`
- run in the Windows 10/11 x86: `x86`
3. 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.
4. 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_
Contributor guide
Assessment
This issue has not been assessed yet.