This commit is contained in:
Walker.Xie 2026-01-30 11:55:32 +00:00 committed by GitHub
commit f027d51eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,11 @@ if (!runner) {
process.stderr.write("Missing UI runner: install pnpm, then retry.\n");
process.exit(1);
}
// On Windows, paths with spaces (e.g. C:\Program Files\...) must be quoted
// so the shell does not split them.
if (process.platform === "win32" && runner.cmd.includes(" ")) {
runner.cmd = `"${runner.cmd}"`;
}
const script =
action === "install"