From 49c060a835e9a4d6e63bc92d0e594efa0ba5c94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Andr=C3=A9?= Date: Tue, 12 May 2026 00:23:45 +0200 Subject: [PATCH] fix(electron): avoid shell for resource prep Run the Electron resource preparation step through the Node executable directly instead of routing process.execPath through the Windows shell. This prevents Node installations under paths like C:\Program Files\nodejs\node.exe from being split by cmd.exe during build:win. The change is scoped to the prepare-resources invocation because the npm/npx build steps still need the existing shell behavior on Windows. Validated with npm run build:win --workspace @neuralnomads/codenomad-electron-app on Windows. --- packages/electron-app/scripts/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/electron-app/scripts/build.js b/packages/electron-app/scripts/build.js index 1621ce1a..f308a2ad 100644 --- a/packages/electron-app/scripts/build.js +++ b/packages/electron-app/scripts/build.js @@ -137,6 +137,7 @@ async function build(platform) { console.log(`\n📦 Preparing resources for ${job.nodeTarget}...\n`) await run(process.execPath, [join(appDir, "scripts", "prepare-resources.js")], { cwd: workspaceRoot, + shell: false, env: { NODE_PATH: workspaceNodeModulesPath, CODENOMAD_NODE_TARGET: job.nodeTarget }, })