Add fix for running jazzy on M1/ARM (#659)

This commit is contained in:
Bart Louwers
2023-01-06 11:40:38 +01:00
committed by GitHub
parent e4b4810ad2
commit d92431b404
2 changed files with 2 additions and 21 deletions

View File

@@ -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

View File

@@ -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"