-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
executable file
·37 lines (28 loc) · 984 Bytes
/
build.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
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo 'Log available at "build.log"'
echo '' > build.log
/bin/mkdir -p ./Output/
/bin/rm -rf ./Output/*
echo 'Building and archiving'
/usr/bin/xcodebuild archive \
-allowProvisioningUpdates \
-project FurMark.xcodeproj \
-scheme FurMark \
-configuration Release \
-archivePath Output/FurMark.xcarchive >> build.log
if [ ! $? -eq 0 ]; then
echo 'Unable to build and archive. Please check build.log for more info'
exit 1
fi
echo 'Exporting archive'
/usr/bin/xcodebuild -exportArchive \
-archivePath ./Output/FurMark.xcarchive \
-exportOptionsPlist exportOptions.plist \
-exportPath Output/ >> build.log
if [ ! $? -eq 0 ]; then
echo 'Unable to export the archive. Please check build.log for more info'
exit 1
fi
/bin/rm -rf ./Output/*.xcarchive
echo 'Done! Available at ./Output/FurMark.app'
exit 0