修复 无法上传问题

This commit is contained in:
2025-10-07 00:53:54 +08:00
parent c21319fe3c
commit 2b62027842
8 changed files with 755 additions and 4835 deletions

View File

@@ -34,7 +34,11 @@ tsc.on('close', (code) => {
build.on('close', (buildCode) => {
if (buildCode === 0) {
const child = spawn(electron, [appPath], {
stdio: 'inherit'
stdio: 'inherit',
env: {
...process.env,
NODE_ENV: 'production'
}
});
child.on('close', (code) => {