From 546e40be797ce6904724cc0a534616961dcf157a Mon Sep 17 00:00:00 2001 From: opa334 Date: Fri, 7 Oct 2022 23:34:00 +0200 Subject: [PATCH] Add check for procursus ldid --- _compile/build_trollinstaller2.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_compile/build_trollinstaller2.sh b/_compile/build_trollinstaller2.sh index 55a3021..8ce88dc 100755 --- a/_compile/build_trollinstaller2.sh +++ b/_compile/build_trollinstaller2.sh @@ -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