Kaynağa Gözat

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

Lucas Fernandes Nogueira 11 ay önce
ebeveyn
işleme
3a4972b394

+ 6 - 0
.changes/cli-info-include-arch.md

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

+ 2 - 1
tooling/cli/src/info/env_system.rs

@@ -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()
     }),