TrollStore/_compile/build_trollinstaller2.sh

28 lines
555 B
Bash
Raw Normal View History

2022-10-07 20:29:30 +08:00
#!/bin/sh
set -e
if [ ! -d "./out" ]
then
mkdir -p ./out
fi
cd ../TrollInstaller2
make clean
make package
cd -
lipo -thin arm64e ../TrollInstaller2/.theos/obj/debug/TrollInstaller2.app/TrollInstaller2 -output ./out/pwn_arm64e
ldid -S -M -Kcert.p12 ./out/pwn_arm64e
mkdir ./out/devpwn
unzip target/Developer.ipa -d ./out/devpwn
./pwnify_compiled ./out/devpwn/Payload/Developer.app/Developer ./out/pwn_arm64e
rm ./out/pwn_arm64e
cd ./out/devpwn
2022-10-07 20:29:30 +08:00
zip -vr devpwn.ipa *
cd -
cp ./out/devpwn/devpwn.ipa ./out/DeveloperInstaller.ipa
rm -rf ./out/devpwn