Skip to content

Commit

Permalink
fix: Fix install script on Apple devices with Apple Silicon (#1076)
Browse files Browse the repository at this point in the history
* fix: Fix install script on Apple devices with Apple Silicon

On Apple devices with Apple Silicon, such as my M1 MacBook, the install
script fails as it tries to install linux version of jq.

* feat: download jq v1.7rc for darwin-arm64 devices

Signed-off-by: Soumil Paranjpay <[email protected]>
  • Loading branch information
Soumil-07 authored Aug 22, 2023
1 parent 41b010a commit 43a1ca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ installDependencies() {
JQ="$(mktemp -d)/jq"
if [ "${OS}-${ARCH}" = 'darwin-amd64' ]; then
download 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64' "$JQ"
elif [ "${OS}-${ARCH}" = 'darwin-arm64' ]; then
download 'https://github.com/jqlang/jq/releases/download/jq-1.7rc1/jq-macos-arm64' "$JQ"
else
download 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' "$JQ"
fi
Expand Down

0 comments on commit 43a1ca8

Please sign in to comment.