From 9fe37465c73ef9675b3e3168f0e53d22116d2fb3 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Thu, 27 Mar 2025 09:35:48 +0100 Subject: [PATCH] build(electron-forge): use double quotes for the buildPath in afterPrune attempt to fix failing Windows build in CI, which uses cmd shell, which apparently treats single apostrophes differently --- forge.config.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge.config.cjs b/forge.config.cjs index b94b2756e..8d5b5d22e 100644 --- a/forge.config.cjs +++ b/forge.config.cjs @@ -47,7 +47,7 @@ module.exports = { try { const cleanupNodeModulesScript = path.join(buildPath, "bin", "cleanupNodeModules.ts"); // we don't have access to any devDeps like 'tsx' here, so use the built-in '--experimental-strip-types' flag instead - const command = `node --experimental-strip-types ${cleanupNodeModulesScript} '${buildPath}' --skip-prune-dev-deps`; + const command = `node --experimental-strip-types ${cleanupNodeModulesScript} "${buildPath}" --skip-prune-dev-deps`; // execSync throws, if above returns any non-zero exit code execSync(command); callback()