forked from Samgisaninja/SuccessionRestore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile
executable file
·41 lines (38 loc) · 2.42 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
#!/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
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/SuccessionRestore32
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/succdatroot
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/attach
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/hdik-armv7
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/hdik-arm64
ldid -SSuccessionEntitlements.plist ./SuccessionRestore.app/hdik-arm64e
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 0755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/SuccessionRestore32
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-armv7
sudo fakeroot chmod 0755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/hdik-arm64
sudo fakeroot chmod 0755 com.samgisaninja.SuccessionRestore/Applications/SuccessionRestore.app/hdik-arm64e
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