Skip to content

Commit

Permalink
Add fix for running jazzy on M1/ARM (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Jan 6, 2023
1 parent e4b4810 commit d92431b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 2 additions & 0 deletions platform/ios/platform/ios/scripts/document.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -euo pipefail

source ~/.bashrc

function step { >&2 echo -e "\033[1m\033[36m* $@\033[0m"; }
function finish { >&2 echo -en "\033[0m"; }
trap finish EXIT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,4 @@ else
echo "Found awscli"
fi


##
## jazzy
##
if [[ -z `which jazzy` || $(jazzy -v) != "jazzy version: ${JAZZY_VERSION}" ]]; then
step "Installing jazzy…"

if [[ "${CILAUNCH}" == true ]]; then
sudo gem install jazzy -v $JAZZY_VERSION --no-document
else
gem install jazzy -v $JAZZY_VERSION --no-document
fi

if [ -z `which jazzy` ]; then
echo "Unable to install jazzy ($JAZZY_VERSION). See https://github.com/mapbox/mapbox-gl-native-ios/blob/master/platform/ios/INSTALL.md"
exit 1
fi
else
echo "Found jazzy (${JAZZY_VERSION})"
fi

step "Finished installing packaging dependencies"

0 comments on commit d92431b

Please sign in to comment.