1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-01-18 21:15:41 +08:00

Add check for procursus ldid

This commit is contained in:
opa334 2022-10-07 23:34:00 +02:00
parent c6f8010943
commit 546e40be79

View File

@ -16,6 +16,19 @@ then
rm ./out/TrollInstaller2_arm64e.ipa
fi
IS_PROCURSUS_LDID=0
LDID_OUTPUT=$(ldid)
case "procursus" in
*$LDID_OUTPUT*)
IS_PROCURSUS_LDID=1
;;
esac
if [[ "$IS_PROCURSUS_LDID" -eq 0 ]]; then
echo "ERROR: You are not using Procursus ldid, follow the guide to switch to it."
exit 1
fi
mkdir ./out/tmppwn || true 2> /dev/null
cd ../Installer/TrollInstaller2