From bccc9698558a6921cea2a6a797ae72d34c5f2292 Mon Sep 17 00:00:00 2001 From: kdletters Date: Tue, 1 Sep 2026 11:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWindows=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=B0=83=E7=94=A8npm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在Windows平台使用npm.cmd启动Tauri构建 --- apps/ai-game-creator-shell/scripts/build-release.mjs | 3 ++- 1 file changed, 2 insertions(+), 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 cf815d094..e9b0d8f0d 100644 --- a/apps/ai-game-creator-shell/scripts/build-release.mjs +++ b/apps/ai-game-creator-shell/scripts/build-release.mjs @@ -158,8 +158,9 @@ export function runTauriBuild(args = []) { const noBundle = args.includes('--no-bundle'); const hasTarget = args.includes('--target'); const targetArgs = noBundle || hasTarget ? [] : ['--target', releaseTarget]; + const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm'; const result = spawnSync( - 'npm', + npmCommand, [ '--prefix', '../..',