-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·28 lines (24 loc) · 1.26 KB
/
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
#!/usr/bin/env bash
set -e
if [ "$1" == "--embed" ]; then
# Compile fastPathSign
pushd TrollStore/Exploits/fastPathSign
make
popd
fi
xcodebuild -configuration Release -derivedDataPath DerivedData/ValidationRelay -destination 'generic/platform=iOS' -scheme ValidationRelay CODE_SIGNING_ALLOWED="NO" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_IDENTITY=""
if [ "$1" == "--embed" ]; then
./TrollStore/Exploits/fastPathSign/fastPathSign --entitlements ValidationRelay/ValidationRelay.entitlements DerivedData/ValidationRelay/Build/Products/Release-iphoneos/ValidationRelay.app/ValidationRelay
cp DerivedData/ValidationRelay/Build/Products/Release-iphoneos/ValidationRelay.app/ValidationRelay EmbeddedValidationRelay
else
ldid -SValidationRelay/ValidationRelay.entitlements -Idev.jjtech.experiments.ValidationRelay DerivedData/ValidationRelay/Build/Products/Release-iphoneos/ValidationRelay.app/ValidationRelay
pushd DerivedData/ValidationRelay/Build/Products/Release-iphoneos
rm -rf Payload ValidationRelay.ipa
mkdir Payload
cp -r ValidationRelay.app Payload
zip -qry ValidationRelay.tipa Payload
popd
cp DerivedData/ValidationRelay/Build/Products/Release-iphoneos/ValidationRelay.tipa .
rm -rf Payload
open -R ValidationRelay.tipa
fi