mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-04 23:17:39 +08:00
fix stdio is invalid issue on Windows
This commit is contained in:
@@ -21,7 +21,7 @@ function runWithDaemon () {
|
|||||||
'main.mjs'
|
'main.mjs'
|
||||||
)],
|
)],
|
||||||
{
|
{
|
||||||
stdio: [process.stdin, process.stdout, process.stderr, 'pipe', 'ipc'],
|
stdio: ['inherit', 'inherit', 'inherit', 'pipe', 'ipc'],
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
MAIN_BOSSGEEKGO_RERUN_INTERVAL: rerunInterval
|
MAIN_BOSSGEEKGO_RERUN_INTERVAL: rerunInterval
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const rerunInterval = (() => {
|
|||||||
})()
|
})()
|
||||||
function runWithDaemon() {
|
function runWithDaemon() {
|
||||||
const subProcessOfCore = childProcess.spawn(process.argv[0], process.argv.slice(1), {
|
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: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
MAIN_BOSSGEEKGO_UI_RUN_MODE: 'geekAutoStartWithBossMain'
|
MAIN_BOSSGEEKGO_UI_RUN_MODE: 'geekAutoStartWithBossMain'
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export function createMainWindow(): void {
|
|||||||
}
|
}
|
||||||
subProcessOfPuppeteer = childProcess.spawn(process.argv[0], process.argv.slice(1), {
|
subProcessOfPuppeteer = childProcess.spawn(process.argv[0], process.argv.slice(1), {
|
||||||
env: subProcessEnv,
|
env: subProcessEnv,
|
||||||
stdio: [process.stdin, process.stdout, process.stderr, 'pipe', 'ipc']
|
stdio: ['inherit', 'inherit', 'inherit', 'pipe', 'ipc']
|
||||||
})
|
})
|
||||||
console.log(subProcessOfPuppeteer)
|
console.log(subProcessOfPuppeteer)
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user