修复Windows命令脚本启动
Project CI / Repository checks (pull_request) Failing after 14s
Project CI / Frontend tests (pull_request) Successful in 3m40s
Project CI / Backend tests (pull_request) Failing after 11s
Project CI / Native shell tests (pull_request) Failing after 16m26s

使用shell模式执行npm.cmd以兼容Windows子进程
This commit is contained in:
2026-09-01 11:54:53 +08:00
parent bccc969855
commit b913aa9ed3
@@ -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);