From 7e090ff1d027d8073b6d0ff87f4545919f54f054 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Mon, 30 Mar 2020 13:02:46 +0800 Subject: [PATCH] Update buildmanifestsaver.sh --- resources/buildmanifestsaver.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/resources/buildmanifestsaver.sh b/resources/buildmanifestsaver.sh index c231a81..4da9d21 100755 --- a/resources/buildmanifestsaver.sh +++ b/resources/buildmanifestsaver.sh @@ -6,14 +6,19 @@ iPad3,1 iPad3,2 iPad3,3 iPad3,4 iPad3,5 iPad3,6 iPod5,1 ) devices613=(iPhone4,1 iPad2,1 iPad2,2 iPad2,3) +if [[ $OSTYPE == "linux-gnu" ]]; then + platform='linux' +elif [[ $OSTYPE == "darwin"* ]]; then + platform='macos' +fi + echo "32bit-OTA-Downgrader BuildManifest and Firmware Keys Saver" echo "- by LukeZGD" -echo "Depends on partialZipBrowser! https://github.com/tihmstar/partialZipBrowser" for ProductType in "${devices[@]}" do dllink=$(curl -I -Ls -o /dev/null -w %{url_effective} https://api.ipsw.me/v4/ota/download/${ProductType}/12H321?prerequisite=12H143) - pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest_$ProductType.plist $dllink + tools/pzb_$platform -g AssetData/boot/BuildManifest.plist -o BuildManifest_${ProductType}_8.4.1.plist $dllink mkdir -p firmware/$ProductType/12H321 curl -L https://firmware-keys.ipsw.me/firmware/$ProductType/12H321 -o firmware/$ProductType/12H321/index.html curl -L https://api.ipsw.me/v2.1/${ProductType}/12H321/sha1sum -o firmware/$ProductType/12H321/sha1sum @@ -23,9 +28,12 @@ done for ProductType in "${devices613[@]}" do dllink=$(curl -I -Ls -o /dev/null -w %{url_effective} https://api.ipsw.me/v4/ota/download/${ProductType}/10B329?prerequisite=10B146) - pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest613_$ProductType.plist $dllink + tools/pzb_$platform -g AssetData/boot/BuildManifest.plist -o BuildManifest_${ProductType}_6.1.3.plist $dllink mkdir -p firmware/$ProductType/10B329 curl -L https://firmware-keys.ipsw.me/firmware/$ProductType/10B329 -o firmware/$ProductType/10B329/index.html curl -L https://api.ipsw.me/v2.1/${ProductType}/10B329/sha1sum -o firmware/$ProductType/10B329/sha1sum curl -L https://api.ipsw.me/v2.1/${ProductType}/10B329/url -o firmware/$ProductType/10B329/url done + +mkdir manifests +mv *.plist manifests