From a0529e0dda8eb6e7d05ce51f868c4f7ce032538b Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 8 Jan 2025 15:50:10 -0600 Subject: [PATCH] fix: fixes install script for apple x86 --- scripts/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 59096865..5d66cf56 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -86,6 +86,10 @@ function get_os_info() { "Darwin") os="apple-darwin" arch=$(arch) + if [[ "$arch" == "i386" ]]; then + # Rosetta reports as i386, but we treat it as x86_64 + arch="x86_64" + fi ;; *) echo "ERROR: anvil-zksync only supports Linux and MacOS! Detected OS: $unamestr" @@ -101,6 +105,8 @@ function get_os_info() { architecture="aarch64" ;; *) + echo "Operating system: $os" + echo "Architecture: $arch" echo "ERROR: Unsupported architecture detected!" exit 1 ;;