diff --git a/apps/desktop/scripts/tauri-with-stub.mjs b/apps/desktop/scripts/tauri-with-stub.mjs index 0c95f55..9fef3c5 100644 --- a/apps/desktop/scripts/tauri-with-stub.mjs +++ b/apps/desktop/scripts/tauri-with-stub.mjs @@ -28,7 +28,10 @@ if (!process.env.TAURI_BUNDLE_TARGETS) { const winTauriPath = resolve(appRoot, "node_modules", ".bin", "tauri.cmd") const usingWinTauri = process.platform === "win32" && existsSync(winTauriPath) const executable = process.platform === "win32" && usingWinTauri ? "cmd.exe" : "tauri" -const args = process.platform === "win32" && usingWinTauri ? ["/C", `"${winTauriPath}"`, ...process.argv.slice(2)] : process.argv.slice(2) +const args = + process.platform === "win32" && usingWinTauri + ? ["/C", winTauriPath, ...process.argv.slice(2)] + : process.argv.slice(2) const child = spawn(executable, args, { stdio: "inherit", shell: false,