Add check for procursus ldid

This commit is contained in:
opa334 2022-10-07 23:34:00 +02:00
parent c6f8010943
commit 546e40be79
1 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,19 @@ then
rm ./out/TrollInstaller2_arm64e.ipa rm ./out/TrollInstaller2_arm64e.ipa
fi 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 mkdir ./out/tmppwn || true 2> /dev/null
cd ../Installer/TrollInstaller2 cd ../Installer/TrollInstaller2