fix(install.sh): downloading the right binary for apple silicon chip

re #1673
This commit is contained in:
mervyn 2024-10-18 11:21:02 +08:00
parent c54fae0136
commit 9707a2daf2

View file

@ -18,7 +18,11 @@ else
fi
if [ $PLATFORM == "Darwin" ]; then
PLATFORM="macos-x86-64"
if [ "$(uname -m)" == "arm64" ]; then
PLATFORM="macos-aarch64"
else
PLATFORM="macos-x86-64"
fi
elif [ $PLATFORM == "Linux" ]; then
PLATFORM="ubuntu-20_04-x86-64"
else