Explorar o código

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

Lucas Fernandes Nogueira hai 11 meses
pai
achega
3a4972b394
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 6 0
      .changes/cli-info-include-arch.md
  2. 2 1
      tooling/cli/src/info/env_system.rs

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