diff --git a/forge.config.js b/forge.config.js index e0709c538..49e0a0ab1 100644 --- a/forge.config.js +++ b/forge.config.js @@ -140,6 +140,18 @@ let config = { } return packageJson; }, + preMake: async (forgeConfig) => { + if (process.platform === 'darwin') { + + console.log("About to install macos-alias"); + const npmInstall = spawnSync("npm", ["install", "macos-alias"], { + cwd: buildPath, + stdio: "inherit", + shell: "true", + }); + } + }, + packageAfterPrune: async ( forgeConfig, buildPath, @@ -167,12 +179,6 @@ let config = { }); // Workaround from https://www.update.rocks/blog/fixing-the-python3/ if (platform === "darwin") { - console.log("About to install macos-alias"); - const npmInstall = spawnSync("npm", ["install", "macos-alias"], { - cwd: buildPath, - stdio: "inherit", - shell: "true", - }); // Directory to inspect const dirPath = path.join( buildPath, diff --git a/yarn.lock b/yarn.lock index c7b243b3a..af34514a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6824,7 +6824,7 @@ lru-cache@^7.7.1: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== -macos-alias@^0.2.11, macos-alias@~0.2.5: +macos-alias@~0.2.5: version "0.2.11" resolved "https://registry.yarnpkg.com/macos-alias/-/macos-alias-0.2.11.tgz#feeea6c13ba119814a43fc43c470b31e59ef718a" integrity sha512-zIUs3+qpml+w3wiRuADutd7XIO8UABqksot10Utl/tji4UxZzLG4fWDC+yJZoO8/Ehg5RqsvSRE/6TS5AEOeWw==