修复Windows构建调用npm
Project CI / Repository checks (pull_request) Failing after 9s
Project CI / Backend tests (pull_request) Failing after 9s
Project CI / Frontend tests (pull_request) Successful in 4m6s
Project CI / Native shell tests (pull_request) Failing after 17m52s

在Windows平台使用npm.cmd启动Tauri构建
This commit is contained in:
2026-09-01 11:53:06 +08:00
parent 5351b5f87c
commit bccc969855
@@ -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',
'../..',