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,12 +27,13 @@ fn log_line(message: &str) {
println!("[tauri-cli] {message}"); println!("[tauri-cli] {message}");
} }
fn configure_spawn(command: &mut Command) {
#[cfg(windows)] #[cfg(windows)]
{ fn configure_spawn(command: &mut Command) {
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> { fn workspace_root() -> Option<PathBuf> {
std::env::current_dir().ok().and_then(|mut dir| { std::env::current_dir().ok().and_then(|mut dir| {