From b913aa9ed318e4d58df45abcd3f0ce638141bbbd Mon Sep 17 00:00:00 2001 From: kdletters Date: Tue, 1 Sep 2026 11:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWindows=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用shell模式执行npm.cmd以兼容Windows子进程 --- apps/ai-game-creator-shell/scripts/build-release.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/scripts/build-release.mjs b/apps/ai-game-creator-shell/scripts/build-release.mjs index e9b0d8f0d..82a4ee2ce 100644 --- a/apps/ai-game-creator-shell/scripts/build-release.mjs +++ b/apps/ai-game-creator-shell/scripts/build-release.mjs @@ -171,7 +171,7 @@ export function runTauriBuild(args = []) { ...targetArgs, ...args, ], - { cwd: appRoot, stdio: 'inherit' }, + { cwd: appRoot, stdio: 'inherit', shell: process.platform === 'win32' }, ); if (result.error) throw result.error; if (result.status !== 0) process.exit(result.status ?? 1);