forked from Samgisaninja/SuccessionRestore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile
executable file
·42 lines (39 loc) · 2.46 KB
/
compile
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
38
39
40
41
42
#!/bin/bash
echo "COMPILING 32-BIT..."
xcodebuild -target SuccessionRestore -xcconfig compile32.xcconfig -configuration Debug >> /dev/null
mv ./build/Debug-iphoneos/SuccessionRestore.app/SuccessionRestore ./SuccessionRestore32
rm -rf ./Build
rm -rf ./Index
echo "COMPILING 64-BIT..."
xcodebuild -target SuccessionRestore -xcconfig compile64.xcconfig -configuration Debug >> /dev/null
mv ./build/Debug-iphoneos/SuccessionRestore.app ./
mv ./SuccessionRestore32 ./SuccessionRestore.app/SuccessionRestore32
mv ./SuccessionRestore.app/SuccessionRestore ./SuccessionRestore.app/SuccessionRestore64
mv ./SuccessionRestore.app/SuccessionRestore32 ./SuccessionRestore.app/SuccessionRestore32stupid
lipo ./SuccessionRestore.app/SuccessionRestore32stupid -remove arm64 -output ./SuccessionRestore.app/SuccessionRestore32
rm ./SuccessionRestore.app/SuccessionRestore32stupid
lipo ./SuccessionRestore.app/SuccessionRestore64 ./SuccessionRestore.app/SuccessionRestore32 -create -output ./SuccessionRestore.app/SuccessionRestore
rm ./SuccessionRestore.app/SuccessionRestore32
rm ./SuccessionRestore.app/SuccessionRestore64
echo "COMPILING SUCCDATROOT..."
cd ./succdatroot/ && make
cd ..
cp ./succdatroot/.theos/obj/debug/succdatroot ./SuccessionRestore.app/succdatroot
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/SuccessionRestore
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/succdatroot
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/attach
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/hdik
rm -f ./SuccessionRestore.app/embedded.mobileprovision
mkdir ./com.samgisaninja.SuccessionRestore
cp -r ./Template/* ./com.samgisaninja.SuccessionRestore/
mkdir com.samgisaninja.SuccessionRestore/Applications/
mv SuccessionRestore.app com.samgisaninja.SuccessionRestore/Applications/
sudo fakeroot chmod 0755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/SuccessionRestore
sudo fakeroot chmod 6755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/succdatroot
sudo fakeroot chmod 0755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/attach
sudo fakeroot chmod 0755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/hdik
rm -rf ./build
rm -rf ./Index
find . -type f -name .DS_Store -delete && xattr -cr *
sudo fakeroot dpkg-deb -Zgzip -b com.samgisaninja.SuccessionRestore com.samgisaninja.successionrestore.deb && rm -r com.samgisaninja.SuccessionRestore
## Changes made by nobbele/4ppleCracker