Skip to content

Commit

Permalink
Assume jazzy and ffi are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored and artakka committed Jan 6, 2023
1 parent 656915f commit 5c6c1c8
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,4 @@ else
echo "Found awscli"
fi

if [[ "${CILAUNCH}" == true ]]; then
sudo="sudo"
else
sudo=""
fi

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

$sudo gem install jazzy -v $JAZZY_VERSION --no-document

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

# fix for jazzy on M1/ARM https://github.com/realm/jazzy/issues/1259
if [[ $(uname -p) == 'arm' ]]; then
step "Installing ffi, to run jazzy on M1/ARM chip…"
$sudo gem install --user-install ffi -- --enable-libffi-alloc
fi

step "Finished installing packaging dependencies"

0 comments on commit 5c6c1c8

Please sign in to comment.