Skip to content

Commit

Permalink
let's try this
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Dec 19, 2023
1 parent 72df9cb commit 4db32a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down

0 comments on commit 4db32a8

Please sign in to comment.