From 176530ecb910b9f6f4f5c5ecb49266bcd8ae6137 Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Sat, 27 Dec 2025 14:10:50 -0800 Subject: [PATCH] fix: bundle all electron-updater dependencies, fix docker quit EPIPE --- ac-electron/main.js | 14 ++++++++++---- ac-electron/package.json | 13 ++++++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/ac-electron/main.js b/ac-electron/main.js index e5f5426348..c1378fb212 100644 --- a/ac-electron/main.js +++ b/ac-electron/main.js @@ -1262,12 +1262,18 @@ app.on('will-quit', () => { } } - // Stop the devcontainer when the app quits + // Stop the devcontainer when the app quits (only if docker is available) try { - require('child_process').execSync('docker stop aesthetic', { timeout: 5000 }); - console.log('[main] Stopped devcontainer'); + const dockerPath = getDockerPath(); + if (fs.existsSync(dockerPath)) { + require('child_process').execSync(`${dockerPath} stop aesthetic`, { + timeout: 5000, + stdio: 'ignore' // Suppress output to avoid EPIPE + }); + console.log('[main] Stopped devcontainer'); + } } catch (e) { - console.log('[main] Could not stop devcontainer:', e.message); + // Silently ignore - docker may not be running or container may not exist } }); diff --git a/ac-electron/package.json b/ac-electron/package.json index 10a8e2fc71..7b11079476 100644 --- a/ac-electron/package.json +++ b/ac-electron/package.json @@ -68,10 +68,21 @@ "node_modules/node-pty/**/*", "node_modules/three/**/*", "node_modules/electron-updater/**/*", + "node_modules/fs-extra/**/*", + "node_modules/graceful-fs/**/*", + "node_modules/jsonfile/**/*", + "node_modules/universalify/**/*", "node_modules/builder-util-runtime/**/*", "node_modules/lazy-val/**/*", "node_modules/semver/**/*", - "node_modules/lodash.isequal/**/*" + "node_modules/lodash.isequal/**/*", + "node_modules/lodash.escaperegexp/**/*", + "node_modules/sax/**/*", + "node_modules/debug/**/*", + "node_modules/ms/**/*", + "node_modules/js-yaml/**/*", + "node_modules/argparse/**/*", + "node_modules/tiny-typed-emitter/**/*" ], "win": { "target": [ -- 2.51.2