mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-11 18:09:50 +08:00
fix stdio is invalid issue on Windows
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user