Skip to content

Commit

Permalink
update distribution/install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Jan 8, 2025
1 parent 4f3f180 commit 4d8d88d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions distribution/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,15 @@ install_from_archive() {
x86_64-apple-darwin)
_archive_arch=$_arch
;;
aarch64-apple-darwin)
_archive_arch="arm64-apple-darwin"
;;
x86_64-*linux*-gnu)
_archive_arch="x86_64-unknown-linux-gnu"
;;
x86_64-*linux*-musl)
_archive_arch="x86_64-unknown-linux-musl"
;;
aarch64-apple-darwin)
# This if statement can be removed when Vector publishes aarch64-apple-darwin builds
if /usr/bin/pgrep oahd >/dev/null 2>&1; then
echo "Rosetta is installed, installing x86_64-apple-darwin archive"
_archive_arch="x86_64-apple-darwin"
else
echo "Builds for Apple Silicon are not published today, please install Rosetta"
err "unsupported arch: $_arch"
fi
;;
aarch64-*linux*)
_archive_arch="aarch64-unknown-linux-musl"
;;
Expand Down

0 comments on commit 4d8d88d

Please sign in to comment.