fix stdio is invalid issue on Windows

This commit is contained in:
geekgeekrun
2024-03-22 09:14:18 +08:00
parent f69b597cd7
commit ca333ce2da
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ function runWithDaemon () {
'main.mjs'
)],
{
stdio: [process.stdin, process.stdout, process.stderr, 'pipe', 'ipc'],
stdio: ['inherit', 'inherit', 'inherit', 'pipe', 'ipc'],
env: {
...process.env,
MAIN_BOSSGEEKGO_RERUN_INTERVAL: rerunInterval

View File

@@ -13,7 +13,7 @@ const rerunInterval = (() => {
})()
function runWithDaemon() {
const subProcessOfCore = childProcess.spawn(process.argv[0], process.argv.slice(1), {
stdio: [process.stdin, process.stdout, process.stderr, 'pipe', 'ipc'],
stdio: ['inherit', 'inherit', 'inherit', 'pipe', 'ipc'],
env: {
...process.env,
MAIN_BOSSGEEKGO_UI_RUN_MODE: 'geekAutoStartWithBossMain'

View File

@@ -128,7 +128,7 @@ export function createMainWindow(): void {
}
subProcessOfPuppeteer = childProcess.spawn(process.argv[0], process.argv.slice(1), {
env: subProcessEnv,
stdio: [process.stdin, process.stdout, process.stderr, 'pipe', 'ipc']
stdio: ['inherit', 'inherit', 'inherit', 'pipe', 'ipc']
})
console.log(subProcessOfPuppeteer)
return new Promise((resolve, reject) => {