forked from dsmelov/simsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
executable file
·26 lines (19 loc) · 663 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
NEW_VERSION_STRING=$1
PLIST="./SimSim/Info.plist"
# Increment Build number and update version
PLB=/usr/libexec/PlistBuddy
LAST_NUMBER=$($PLB -c "Print CFBundleVersion" "$PLIST")
NEW_VERSION=$(($LAST_NUMBER + 1))
$PLB -c "Set :CFBundleVersion $NEW_VERSION" "$PLIST"
$PLB -c "Set :CFBundleShortVersionString $NEW_VERSION_STRING" $PLIST
# Build
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# DMG
./Release/dmg/build.sh
# ZIP
cd ./build/Release/
zip -r ../../Release/SimSim_${NEW_VERSION_STRING}.zip ./SimSim.app
cd ../../
# Create latest ZIP
yes | cp ./Release/SimSim_${NEW_VERSION_STRING}.zip ./Release/SimSim_latest.zip
echo "Done"