fix: 移除Windows控制台配置并修改后端进程stdio设置
This commit is contained in:
@@ -19,8 +19,7 @@
|
|||||||
"win": {
|
"win": {
|
||||||
"target": "nsis",
|
"target": "nsis",
|
||||||
"icon": "frontend/public/favicon.ico",
|
"icon": "frontend/public/favicon.ico",
|
||||||
"requestedExecutionLevel": "asInvoker",
|
"requestedExecutionLevel": "asInvoker"
|
||||||
"console": false
|
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ async function startBackend() {
|
|||||||
...process.env,
|
...process.env,
|
||||||
NODE_ENV: process.env.NODE_ENV || 'production',
|
NODE_ENV: process.env.NODE_ENV || 'production',
|
||||||
},
|
},
|
||||||
stdio: 'inherit',
|
stdio: 'pipe',
|
||||||
});
|
});
|
||||||
|
|
||||||
backendProcess.on('error', (error) => {
|
backendProcess.on('error', (error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user