feat: do not show prompt on Windows (#98)

This commit is contained in:
cocool97
2025-03-09 19:42:39 +01:00
committed by GitHub
parent 1b7efc1cc6
commit b8e3d02311

View File

@@ -36,6 +36,13 @@ impl ADBServer {
command.env(env_k, env_v);
}
#[cfg(target_os = "windows")]
{
use std::os::windows::process::CommandExt;
// Do not show a prompt on Windows
command.creation_flags(0x08000000);
}
let child = command.spawn();
match child {
Ok(mut child) => {