-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9df63dd
commit d510b1d
Showing
5 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
#!/bin/sh | ||
|
||
# How to use: | ||
# release Appstore with bundle production: build-ios.sh or build-ios.sh production appstore | ||
# release Appstore with bundle staging: build-ios.sh staging or build-ios.sh staging appstore | ||
# export Adhoc with bundle production: build-ios.sh production adhoc | ||
# export Adhoc with bundle staging: build-ios.sh staging adhoc | ||
cd ./ios | ||
rm -rf ./build && rm -rf ./dist && pod install | ||
|
||
ENVIRONMENT=${1-"production"} | ||
APPSTORE=${2-"appstore"} | ||
#Builds the xcarchive | ||
if [ $ENVIRONMENT = "production" ]; then | ||
xcodebuild -workspace ./SubWalletMobile.xcworkspace -scheme SubWalletMobile-Production -sdk iphoneos -configuration Release -quiet -archivePath $PWD/dist/SubWallet.xcarchive clean archive | ||
else | ||
xcodebuild -workspace ./SubWalletMobile.xcworkspace -scheme SubWalletMobile-Staging -sdk iphoneos -configuration Release -quiet -archivePath $PWD/dist/SubWallet.xcarchive clean archive | ||
fi | ||
|
||
|
||
# Builds the ipa and uploads it to the appstore | ||
xcodebuild -exportArchive -archivePath $PWD/dist/SubWallet.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/dist | ||
if [ $APPSTORE = "appstore" ]; then | ||
xcodebuild -exportArchive -archivePath $PWD/dist/SubWallet.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/dist | ||
else | ||
xcodebuild -exportArchive -archivePath $PWD/dist/SubWallet.xcarchive -exportOptionsPlist exportAdhocOptions.plist -exportPath $PWD/dist | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters