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 57d3b62 commit 659d326
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion brew-universalinstall/installu.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ module.exports = async function(options) {
});
await x86install;

const bottleTag = `${process.arch === "arm64" ? "" : "arm64_"}sonoma`

let armBrewOutput = "";
await exec.exec("brew", ["fetch", "--deps", "--bottle-tag=arm64_sonoma", pk], {
await exec.exec("brew", ["fetch", "--deps", `--bottle-tag=${bottleTag}`, pk], {
listeners: {
stdout: data => {
armBrewOutput += data.toString();
Expand Down

0 comments on commit 659d326

Please sign in to comment.