Skip to content

Commit

Permalink
Fix architecture detection
Browse files Browse the repository at this point in the history
If the architecture is Darwin with x86 the binary downloaded is linux-x86_64
  • Loading branch information
ferranbt authored and QEDK committed Mar 18, 2024
1 parent b6b4b0e commit 10aa3ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions availup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ if [ "$UPGRADE" = 1 ]; then
fi
fi
fi
if [ "$(uname -m)" = "x86_64" ]; then
ARCH_STRING="linux-amd64"
elif [ "$(uname -m)" = "arm64" -a "$(uname -s)" = "Darwin" ]; then
if [ "$(uname -m)" = "arm64" -a "$(uname -s)" = "Darwin" ]; then
ARCH_STRING="apple-arm64"
elif [ "$(uname -m)" = "x86_64" -a "$(uname -s)" = "Darwin" ]; then
ARCH_STRING="apple-x86_64"
elif [ "$(uname -m)" = "aarch64" -o "$(uname -m)" = "arm64" ]; then
ARCH_STRING="linux-aarch64"
elif [ "$(uname -m)" = "x86_64" ]; then
ARCH_STRING="linux-amd64"
fi
if [ -z "$ARCH_STRING" ]; then
echo "📥 No binary available for this architecture, building from source instead. This can take a while..."
Expand Down

0 comments on commit 10aa3ec

Please sign in to comment.