-
-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·31 lines (23 loc) · 642 Bytes
/
test.sh
File metadata and controls
executable file
·31 lines (23 loc) · 642 Bytes
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
27
28
29
30
31
# INSTALL xcpretty: sudo gem install xcpretty
NAME='MTMR'
killall $NAME
rm -r Release 2>/dev/null
# xcodebuild \
# -workspace ./MTMR.xcodeproj/project.xcworkspace \
# -scheme MTMR \
# -configuration Release CONFIGURATION_BUILD_DIR=./build/Release
xcodebuild archive \
-scheme "$NAME" \
-archivePath Release/App.xcarchive | xcpretty
xcodebuild \
-exportArchive \
-archivePath Release/App.xcarchive \
-exportOptionsPlist export-options.plist \
-exportPath Release | xcpretty
cd Release
rm -r App.xcarchive
# Prerequisite: npm i -g create-dmg
NAME_DMG="${NAME}.app"
echo $NAME_DMG
create-dmg $NAME_DMG
open ./$NAME.app