修复Windows命令脚本启动
使用shell模式执行npm.cmd以兼容Windows子进程
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user