fix: spawn engine qua app.shell().command() (ShellExt) — process::Command::new la private trong tauri-plugin-shell v2
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user