fix(tauri): avoid non-Windows spawn warning

This commit is contained in:
Pascal André
2026-03-18 20:21:40 +01:00
parent 3a15b311a8
commit 8245f474b8

View File

@@ -27,13 +27,14 @@ fn log_line(message: &str) {
println!("[tauri-cli] {message}");
}
#[cfg(windows)]
fn configure_spawn(command: &mut Command) {
#[cfg(windows)]
{
command.creation_flags(CREATE_NO_WINDOW);
}
command.creation_flags(CREATE_NO_WINDOW);
}
#[cfg(not(windows))]
fn configure_spawn(_command: &mut Command) {}
fn workspace_root() -> Option<PathBuf> {
std::env::current_dir().ok().and_then(|mut dir| {
for _ in 0..3 {