Adding support for aarch64 and arm64
@@ -135,9 +135,14 @@ function verifyZitiVersionExists {
fi
ZITI_ARCH="amd64"
- if [[ "$(uname -a)" == *"arm"* ]] && [[ "${ZITI_OSTYPE}" == "darwin" ]]; then
+ detected_arch="$(uname -m)"
+ # Apple M1 silicon
+ if [[ "${detected_arch}" == *"arm"* ]] && [[ "${ZITI_OSTYPE}" == "darwin" ]]; then
echo -e "$(YELLOW "WARN: It has been detected that you are using an Apple computer with ARM architecture. Deployment of Apple ARM architecture distributions is currently unsupported through git, the installer will pull darwin amd distribution instead.")"
- elif [[ "$(uname -a)" == *"arm"* ]]; then
+ # LLVM 64 bit backends have merged so some versions of *nix use aarch64 while others use arm64 for parity with Apple
+ elif [[ "${detected_arch}" == *"aarch64"* ]] || [[ "${detected_arch}" == *"arm64"* ]]; then
+ ZITI_ARCH="arm64"
+ elif [[ "${detected_arch}" == *"arm"* ]]; then
ZITI_ARCH="arm"
fi
