feat(cli): include arch in the `tauri info` output (#10793)

This commit is contained in:
Lucas Fernandes Nogueira 2024-08-27 10:02:40 -03:00 committed by GitHub
parent 72597a77f9
commit 3a4972b394
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---
Include architecture in the `tauri info` output.

View File

@ -181,9 +181,10 @@ pub fn items() -> Vec<SectionItem> {
SectionItem::new().action(|| {
let os_info = os_info::get();
format!(
"OS: {} {} {:?}",
"OS: {} {} {} ({:?})",
os_info.os_type(),
os_info.version(),
os_info.architecture().unwrap_or("Unknown Architecture"),
os_info.bitness()
).into()
}),