Skip to content

Commit

Permalink
Merge pull request #161 from robertsirc/Adding-arm64-support
Browse files Browse the repository at this point in the history
adding arm64 support for mac
  • Loading branch information
mattfarina committed Aug 14, 2024
2 parents c500c4d + 14c95ae commit 1f04a32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/install_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ echo "Downloading and installing helm-mapkubeapis v${version} ..."

url=""
if [ "$(uname)" = "Darwin" ]; then
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_amd64.tar.gz"
if [ "$(uname -m)" = "arm64" ]; then
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_arm64.tar.gz"
else
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_amd64.tar.gz"
fi
elif [ "$(uname)" = "Linux" ] ; then
if [ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "arm64" ]; then
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_linux_arm64.tar.gz"
Expand Down

0 comments on commit 1f04a32

Please sign in to comment.