File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # ##
4
+ # ## Build an Xcode project.
5
+ # ## This script exprects that you've already injected the original files.
6
+ # ##
7
+
3
8
# Main build command
4
9
xcodebuild clean build \
5
10
-configuration Release \
@@ -13,14 +18,25 @@ if ! [ $? = 0 ]; then
13
18
fi ;
14
19
15
20
# Compress the app into .ipa file if the "ipa" argument is passed
16
- if [ " $1 " == " ipa" ]; then
21
+ if [ " $1 " == " ipa" ] || [ " $1 " == " ipa-no-assets " ] ; then
17
22
cd ./build
18
23
if [ -f " ./iloveusomuch.ipa" ]; then
19
24
rm ./iloveusomuch.ipa
20
25
fi
21
26
mkdir -p ./Payload/iloveusomuch.app
22
27
mv ./iloveusomuch.app/* ./Payload/iloveusomuch.app
23
28
rm -R ./iloveusomuch.app
29
+
30
+ # Remove copyrighted assets if the first argument is "ipa-no-assets"
31
+ # This is used for publishing on GitHub
32
+ if [ " $1 " == " ipa-no-assets" ]; then
33
+ rm ./Payload/iloveusomuch.app/AppIcon.png \
34
+ ./Payload/iloveusomuch.app/loader.png \
35
+ ./Payload/iloveusomuch.app/background.png \
36
+ ./Payload/iloveusomuch.app/Loader.m4v \
37
+ ./Payload/iloveusomuch.app/Videos.m4v
38
+ fi
39
+
24
40
zip -r iloveusomuch ./Payload
25
41
mv ./iloveusomuch.zip ./iloveusomuch.ipa
26
42
rm -R ./Payload
You can’t perform that action at this time.
0 commit comments