From 8d626c9cc6f819e167fd2a0fbb33e87219d24f2e Mon Sep 17 00:00:00 2001 From: henrytien Date: Thu, 29 Jan 2026 14:23:20 +0800 Subject: [PATCH] fix(ui): quote cmd path for Windows spawn with spaces --- scripts/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ui.js b/scripts/ui.js index 16ad6b0c2..83905be27 100644 --- a/scripts/ui.js +++ b/scripts/ui.js @@ -51,7 +51,7 @@ function resolveRunner() { } function run(cmd, args) { - const child = spawn(cmd, args, { + const child = spawn(`"${cmd}"`, args, { cwd: uiDir, stdio: "inherit", env: process.env, @@ -64,7 +64,7 @@ function run(cmd, args) { } function runSync(cmd, args, envOverride) { - const result = spawnSync(cmd, args, { + const result = spawnSync(`"${cmd}"`, args, { cwd: uiDir, stdio: "inherit", env: envOverride ?? process.env,