Add Apple arm support for node install script

main
Buddy 2 days ago
parent 476cdbaf42
commit 51bf2c580b

@ -16,14 +16,15 @@ node_current () (
get_arch () (
case $(uname -m) in
x86_64*) echo x64;;
amd64*) echo x64;;
arm) echo armv7l;;
armv7*) echo armv7l;;
armv6*) echo armv7l;;
armv8*) echo arm64;;
aarch64*) echo arm64;;
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;;
x86_64*) echo x64 ;;
amd64*) echo x64 ;;
arm) echo armv7l ;;
arm64) echo arm64 ;;
armv7*) echo armv7l ;;
armv6*) echo armv7l ;;
armv8*) echo arm64 ;;
aarch64*) echo arm64 ;;
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1 ;;
esac
)

Loading…
Cancel
Save