mattermost-mobile/scripts/postinstall.sh
Mattermost Build b5b2310f33
update dependencies (#4958) (#4968)
* update dependencies

* revert keychain update

* Update dependencies & Fastlane

* set path agnostic for bash in scrips

* Fix open from push notification race

* patch react-native-localize

(cherry picked from commit b226d451f3)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-11-19 13:37:43 -03:00

19 lines
No EOL
463 B
Bash
Executable file

#!/usr/bin/env bash
if [[ "$OSTYPE" == "darwin"* ]]; then
if !gem list bundler -i --version 2.1.4 > /dev/null 2>&1; then
gem install bundler --version 2.1.4
fi
echo "Installing Gems"
npm run ios-gems &> /dev/null
echo "Getting Cocoapods dependencies"
npm run pod-install &> /dev/null
fi
ASSETS=$(node scripts/generate-assets.js)
if [ -z "$ASSETS" ]; then
echo "Error Generating app assets"
exit 1
else
echo "Generating app assets"
fi