From ad537f638ccf1c9b804eba42b1170bbf57625a5c Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 24 Jan 2024 11:35:59 -0700 Subject: [PATCH] (probably) install rosetta if it's not there --- script/squawk | 1 + 1 file changed, 1 insertion(+) diff --git a/script/squawk b/script/squawk index 68977645d0..cb3a76bf51 100755 --- a/script/squawk +++ b/script/squawk @@ -16,6 +16,7 @@ SQUAWK_BIN="./target/squawk-$SQUAWK_VERSION" SQUAWK_ARGS="--assume-in-transaction --config script/lib/squawk.toml" if [ ! -f "$SQUAWK_BIN" ]; then + pkgutil --pkg-info com.apple.pkg.RosettaUpdateAuto || /usr/sbin/softwareupdate --install-rosetta --agree-to-license curl -L -o "$SQUAWK_BIN" "https://github.com/sbdchd/squawk/releases/download/v$SQUAWK_VERSION/squawk-darwin-x86_64" chmod +x "$SQUAWK_BIN" fi