server: use electron as node for server process

This commit is contained in:
jean-emmanuel 2025-09-12 02:49:16 +02:00
parent 3a1a05636b
commit fb3def071f

View file

@ -73,7 +73,7 @@ function startServerProcess() {
}
}
serverProcess = fork(app.getAppPath(), args, {stdio: 'pipe', env: {...process.env, OSC_SERVER_PROCESS: 1}})
serverProcess = fork(app.getAppPath(), args, {stdio: 'pipe', env: {...process.env, OSC_SERVER_PROCESS: 1, ELECTRON_RUN_AS_NODE: 1}})
var cb = (data)=>{
if (data.indexOf('(INFO) Server started') > -1) {