From d702cbdab0d749a74eb0b82091f7196b2814a614 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Thu, 2 May 2024 11:02:55 +0800 Subject: [PATCH] Fix updaters --- restore.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/restore.sh b/restore.sh index 9d2bfc6..6ec5783 100755 --- a/restore.sh +++ b/restore.sh @@ -4908,8 +4908,7 @@ menu_ramdisk() { print "* If your device is on iOS 13 or below, TrollStore will NOT work." pause log "Checking for latest TrollStore" - local troll=$(curl https://api.github.com/repos/opa334/TrollStore/releases/latest) - local latest="$(echo "$troll" | $jq -r ".tag_name")" + local latest="$(curl https://api.github.com/repos/opa334/TrollStore/releases/latest | $jq -r ".tag_name")" local current="$(cat ../saved/TrollStore_version)" if [[ $current != "$latest" ]]; then rm ../saved/TrollStore.tar ../saved/PersistenceHelper_Embedded @@ -4919,8 +4918,8 @@ menu_ramdisk() { else rm ../saved/TrollStore.tar ../saved/PersistenceHelper_Embedded 2>/dev/null log "Downloading files for latest TrollStore" - download_file $(echo "$troll" | $jq -r ".assets[] | select(.name|test(\"PersistenceHelper_Embedded\")) | .browser_download_url") PersistenceHelper_Embedded - download_file $(echo "$troll" | $jq -r ".assets[] | select(.name|test(\"TrollStore.tar\")) | .browser_download_url") TrollStore.tar + download_file https://github.com/opa334/TrollStore/releases/download/$latest/PersistenceHelper_Embedded PersistenceHelper_Embedded + download_file https://github.com/opa334/TrollStore/releases/download/$latest/TrollStore.tar TrollStore.tar cp TrollStore.tar PersistenceHelper_Embedded ../saved echo "$latest" > ../saved/TrollStore_version fi @@ -5216,14 +5215,13 @@ menu_ipa() { esac local sideloader="sideloader-gtk-linux-$arch" log "Checking for latest Sideloader" - local troll=$(curl https://api.github.com/repos/Dadoum/Sideloader/releases/latest) - local latest="$(echo "$troll" | $jq -r ".tag_name")" + local latest="$(curl https://api.github.com/repos/Dadoum/Sideloader/releases/latest | $jq -r ".tag_name")" local current="$(cat ../saved/Sideloader_version)" if [[ $current != "$latest" ]]; then rm ../saved/$sideloader fi if [[ ! -e ../saved/$sideloader ]]; then - download_file https://github.com/Dadoum/Sideloader/releases/download/1.0-pre3/$sideloader.zip $sideloader.zip + download_file https://github.com/Dadoum/Sideloader/releases/download/$latest/$sideloader.zip $sideloader.zip unzip -o -j $sideloader.zip $sideloader -d ../saved fi echo "$latest" > ../saved/Sideloader_version