Sfoglia il codice sorgente

Hide server CLI on windows (#13936)

Brendan Allan 6 mesi fa
parent
commit
d338bd528c
1 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 6 3
      packages/desktop/src-tauri/src/cli.rs

+ 6 - 3
packages/desktop/src-tauri/src/cli.rs

@@ -317,9 +317,12 @@ pub fn spawn_command(
         cmd
         cmd
     };
     };
 
 
-    cmd.stdin(Stdio::null())
-        .stdout(Stdio::piped())
-        .stderr(Stdio::piped());
+    cmd.stdin(Stdio::null());
+    cmd.stdout(Stdio::piped());
+    cmd.stderr(Stdio::piped());
+
+    #[cfg(windows)]
+    cmd.creation_flags(0x0800_0000);
 
 
     let mut wrap = CommandWrap::from(cmd);
     let mut wrap = CommandWrap::from(cmd);