mirror of https://github.com/opa334/TrollStore.git
48 lines
1.0 KiB
Bash
Executable File
48 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -d "./out" ]
|
|
then
|
|
rm -rf ./out
|
|
fi
|
|
mkdir -p ./out
|
|
|
|
# Step one: Compile TrollStore
|
|
|
|
cd ../Store
|
|
make clean
|
|
make FINALPACKAGE=1
|
|
cd -
|
|
|
|
cp -r ../Store/.theos/obj/TrollStore.app ./out/TrollStore.app
|
|
ldid -S -M -Kcert.p12 ./out/TrollStore.app
|
|
|
|
# Step two: Compile and permasign helper
|
|
|
|
cd ../Helper
|
|
make clean
|
|
make FINALPACKAGE=1
|
|
cd -
|
|
|
|
cp ../Helper/.theos/obj/trollstorehelper ./out/TrollStore.app/trollstorehelper
|
|
ldid -S -M -Kcert.p12 ./out/TrollStore.app/trollstorehelper
|
|
|
|
# Step three: Compile and permasign persistence helper
|
|
|
|
# (copy helper into persistence helper)
|
|
cp ./out/TrollStore.app/trollstorehelper ../PersistenceHelper/Resources/trollstorehelper
|
|
|
|
cd ../PersistenceHelper
|
|
make clean
|
|
make do FINALPACKAGE=1
|
|
cd -
|
|
|
|
cp ../PersistenceHelper/.theos/obj/TrollStorePersistenceHelper.app/TrollStorePersistenceHelper ./out/TrollStore.app/PersistenceHelper
|
|
ldid -S -M -Kcert.p12 ./out/TrollStore.app/PersistenceHelper
|
|
|
|
# Step four: tar everything
|
|
|
|
cd out
|
|
COPYFILE_DISABLE=1 tar -czvf TrollStore.tar ./TrollStore.app
|
|
rm -rf ./TrollStore.app
|
|
cd -
|