From 5d5cd25cf51461d9d49371fa4e0de1b39e8093a8 Mon Sep 17 00:00:00 2001 From: zlm Date: Wed, 10 Jun 2026 15:18:49 +0800 Subject: [PATCH] revert: back to stdio ignore --- desktop/src/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop/src/main.js b/desktop/src/main.js index f08b97c..2e36a1b 100644 --- a/desktop/src/main.js +++ b/desktop/src/main.js @@ -29,12 +29,10 @@ function startBackend() { if (backend) return backend = spawn('node', [TSX, 'src/index.ts'], { cwd: PROJECT_DIR, - stdio: ['ignore', 'pipe', 'pipe'], + stdio: 'ignore', env: { ...process.env, PORT: process.env.PORT || '3000' }, windowsHide: true, }) - backend.stdout.on('data', (d) => console.log(d.toString().trimEnd())) - backend.stderr.on('data', (d) => console.error(d.toString().trimEnd())) isRunning = true updateMenu() backend.on('exit', () => { backend = null; isRunning = false; updateMenu() })