From 659d3268548bbe2df2ac513502e05e705edc89b0 Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Sat, 9 Nov 2024 11:45:04 +1100 Subject: [PATCH] Download x86 binaries when running on arm --- brew-universalinstall/installu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brew-universalinstall/installu.js b/brew-universalinstall/installu.js index 4c49cb3..c4fa388 100644 --- a/brew-universalinstall/installu.js +++ b/brew-universalinstall/installu.js @@ -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();