Skip to content

Commit

Permalink
Download x86 binaries when running on arm
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Nov 9, 2024
1 parent 659d326 commit 8e5e3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brew-universalinstall/installu.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ module.exports = async function(options) {

for (let library of brewFiles) {
let rel = path.relative(armCellar, library);
await lipoIfRequired(library, path.resolve("/usr/local/Cellar", rel));
await lipoIfRequired(library, path.resolve(process.arch === "arm64" ? "/opt/homebrew/Cellar" : "/usr/local/Cellar", rel));
}
} finally {
console.log(`Removing ARM homebrew`);
Expand Down

0 comments on commit 8e5e3e2

Please sign in to comment.