Skip to content

Commit d338bd5

Browse files
authored
Hide server CLI on windows (anomalyco#13936)
1 parent ea2d089 commit d338bd5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • packages/desktop/src-tauri/src

packages/desktop/src-tauri/src/cli.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,12 @@ pub fn spawn_command(
317317
cmd
318318
};
319319

320-
cmd.stdin(Stdio::null())
321-
.stdout(Stdio::piped())
322-
.stderr(Stdio::piped());
320+
cmd.stdin(Stdio::null());
321+
cmd.stdout(Stdio::piped());
322+
cmd.stderr(Stdio::piped());
323+
324+
#[cfg(windows)]
325+
cmd.creation_flags(0x0800_0000);
323326

324327
let mut wrap = CommandWrap::from(cmd);
325328

0 commit comments

Comments
 (0)