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 () ( get_arch () (
case $(uname -m) in case $(uname -m) in
x86_64*) echo x64;; x86_64*) echo x64 ;;
amd64*) echo x64;; amd64*) echo x64 ;;
arm) echo armv7l;; arm) echo armv7l ;;
armv7*) echo armv7l;; arm64) echo arm64 ;;
armv6*) echo armv7l;; armv7*) echo armv7l ;;
armv8*) echo arm64;; armv6*) echo armv7l ;;
aarch64*) echo arm64;; armv8*) echo arm64 ;;
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;; aarch64*) echo arm64 ;;
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1 ;;
esac esac
) )

Loading…
Cancel
Save