-
Notifications
You must be signed in to change notification settings - Fork 25
/
compile.command
executable file
·31 lines (21 loc) · 893 Bytes
/
compile.command
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
#!/bin/bash
set -ex
# cd script dir
cd "$(dirname "$0")" || exit
GIT_ROOT=$(pwd)
rm -rf build Payload ModMyIPA.ipa # ModMyIPA-TS.ipa
xcodebuild -project "$GIT_ROOT/ModMyIPA.xcodeproj" \
-scheme ModMyIPA -configuration Release \
-derivedDataPath "$GIT_ROOT/build" \
-destination 'generic/platform=iOS' \
-sdk iphoneos \
clean build \
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO \
PRODUCT_BUNDLE_IDENTIFIER="com.powen.ModMyIPA" \
#ldid -S -M build/Build/Products/Release-iphoneos/ModMyIPA.app
ln -sf build/Build/Products/Release-iphoneos Payload
#zip -r9 ModMyIPA.ipa Payload/ModMyIPA.app
# Build TrollStore Support Edition
#cp -R build/Build/Products/Release-iphoneos/ModMyIPA.app build/Build/Products/Release-iphoneos/ModMyIPA-TS.app
ldid -SModMyIPA.xml -M build/Build/Products/Release-iphoneos/ModMyIPA.app
zip -r9 ModMyIPA.ipa Payload/ModMyIPA.app