diff --git a/forge.config.js b/forge.config.js index 4f3e11dfb..276d2f73d 100644 --- a/forge.config.js +++ b/forge.config.js @@ -143,6 +143,12 @@ let config = { return packageJson; }, packageAfterPrune: async (forgeConfig, buildPath, electronVersion, platform, arch) => { + if (platform === 'darwin') { + console.log("We need to remove the problematic link file on macOS") + console.log(`Build path ${buildPath}`) + fs.unlinkSync(path.join(buildPath, 'node_modules/macos-alias/build/node_gyp_bins/python3')) + }, + const npmInstall = spawnSync("npm", ["install", "--omit=dev"], { cwd: buildPath, stdio: "inherit",