Skip to content

Commit

Permalink
ios release
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Sep 11, 2019
1 parent c2ed1d8 commit 7395845
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,17 @@ buildIosDevice(){
buildIosRelease(){
prebuild_ios

echo "Setting up env vars...";
echo $IOS_ENV | tr "|" "\n" > .ios.env
echo "Build started..."

# Replace release.xcconfig with ENV vars
if [ "$PRE_RELEASE" = true ] ; then
echo "Setting up env vars...";
echo $IOS_ENV | tr "|" "\n" > .ios.env
echo "Build started..."
cd ios && bundle install && bundle exec fastlane prerelease
# Generate sourcemaps
yarn sourcemaps:ios
else
react-native run-ios --configuration Release
./node_modules/.bin/react-native run-ios --configuration Release --simulator "iPhone X (12.2)"
fi
}

Expand Down

0 comments on commit 7395845

Please sign in to comment.