fix: spawn engine qua app.shell().command() (ShellExt) — process::Command::new la private trong tauri-plugin-shell v2

This commit is contained in:
2026-08-09 04:39:15 +00:00
parent a3359aa0ed
commit 90493c73f3
+3 -1
View File
@@ -25,7 +25,9 @@ pub fn run() {
} else {
engine_dir.join("daw_engine")
};
let (_rx, child) = tauri_plugin_shell::process::Command::new(engine_exe)
let (_rx, child) = app
.shell()
.command(engine_exe)
.env("SF_PARENT_PID", std::process::id().to_string())
.spawn()
.expect("Failed to spawn daw_engine (onedir resource) — run build_windows.ps1 first");