Replace pzb with partial-zip

This commit is contained in:
LukeeGD 2020-08-16 19:25:32 +08:00
parent b1485900ee
commit e59c7a7edc
6 changed files with 6 additions and 6 deletions

View File

@ -68,6 +68,6 @@
- [kloader](https://www.youtube.com/watch?v=fh0tB6fp0Sc) - [kloader](https://www.youtube.com/watch?v=fh0tB6fp0Sc)
- [kloader5 for iOS 5](https://mtmdev.org/pmbonneau-archive) - [kloader5 for iOS 5](https://mtmdev.org/pmbonneau-archive)
- [kloader_hgsp for iOS 10](https://twitter.com/nyan_satan/status/945203180522045440) - [kloader_hgsp for iOS 10](https://twitter.com/nyan_satan/status/945203180522045440)
- [partialZipBrowser](https://github.com/tihmstar/partialZipBrowser/releases/tag/36) - [partial-zip](https://github.com/matteyeux/partial-zip)
- 32-bit iBSS patches are from [OdysseusOTA](https://www.youtube.com/watch?v=Wo7mGdMcjxw), [OdysseusOTA2](https://www.youtube.com/watch?v=fh0tB6fp0Sc), [alitek12](https://www.mediafire.com/folder/b1z64roy512wd/FirmwareBundles), [gjest](https://files.fm/u/fcbqqdnw) - 32-bit iBSS patches are from [OdysseusOTA](https://www.youtube.com/watch?v=Wo7mGdMcjxw), [OdysseusOTA2](https://www.youtube.com/watch?v=fh0tB6fp0Sc), [alitek12](https://www.mediafire.com/folder/b1z64roy512wd/FirmwareBundles), [gjest](https://files.fm/u/fcbqqdnw)
- A7 iBSS and iBEC patches are from [MatthewPierson](https://github.com/MatthewPierson/iPhone-5s-OTA-Downgrade-Patches) - A7 iBSS and iBEC patches are from [MatthewPierson](https://github.com/MatthewPierson/iPhone-5s-OTA-Downgrade-Patches)

BIN
resources/tools/partialzip_linux Executable file

Binary file not shown.

BIN
resources/tools/partialzip_macos Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -50,7 +50,7 @@ function Main {
futurerestore1="resources/tools/futurerestore1_macos" futurerestore1="resources/tools/futurerestore1_macos"
futurerestore2="resources/tools/futurerestore2_macos" futurerestore2="resources/tools/futurerestore2_macos"
fi fi
pzb="resources/tools/pzb_$platform" partialzip="resources/tools/partialzip_$platform"
[[ ! $platform ]] && Error "OSTYPE unknown/not supported." "Supports Linux and macOS only" [[ ! $platform ]] && Error "OSTYPE unknown/not supported." "Supports Linux and macOS only"
[[ ! $(ping -c1 google.com 2>/dev/null) ]] && Error "Please check your Internet connection before proceeding." [[ ! $(ping -c1 google.com 2>/dev/null) ]] && Error "Please check your Internet connection before proceeding."
@ -216,7 +216,7 @@ function SaveOTABlobs {
function kDFU { function kDFU {
if [ ! -e saved/$ProductType/$iBSS.dfu ]; then if [ ! -e saved/$ProductType/$iBSS.dfu ]; then
Log "Downloading iBSS..." Log "Downloading iBSS..."
$pzb -g Firmware/dfu/$iBSS.dfu -o $iBSS.dfu $(cat $Firmware/$iBSSBuildVer/url) $partialzip $(cat $Firmware/$iBSSBuildVer/url) Firmware/dfu/$iBSS.dfu $iBSS.dfu
mkdir -p saved/$ProductType 2>/dev/null mkdir -p saved/$ProductType 2>/dev/null
mv $iBSS.dfu saved/$ProductType mv $iBSS.dfu saved/$ProductType
fi fi
@ -414,8 +414,8 @@ function Downgrade {
cp $IPSW/Firmware/$Baseband . cp $IPSW/Firmware/$Baseband .
elif [ ! -e saved/$ProductType/*.bbfw ]; then elif [ ! -e saved/$ProductType/*.bbfw ]; then
Log "Downloading baseband..." Log "Downloading baseband..."
$pzb -g Firmware/$Baseband -o $Baseband $BasebandURL $partialzip $BasebandURL Firmware/$Baseband $Baseband
$pzb -g BuildManifest.plist -o BuildManifest.plist $BasebandURL $partialzip $BasebandURL BuildManifest.plist BuildManifest.plist
mkdir -p saved/$ProductType 2>/dev/null mkdir -p saved/$ProductType 2>/dev/null
cp $Baseband BuildManifest.plist saved/$ProductType cp $Baseband BuildManifest.plist saved/$ProductType
else else
@ -497,7 +497,7 @@ function InstallDependencies {
elif [[ $OSTYPE == "darwin"* ]]; then elif [[ $OSTYPE == "darwin"* ]]; then
# macOS # macOS
[ ! $(which git) ] && xcode-select --install xcode-select --install
SaveFile https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.4/libimobiledevice.1.2.1-r1079-osx-x64.zip libimobiledevice.zip 2812e01fc7c09b5980b46b97236b2981dbec7307 SaveFile https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.4/libimobiledevice.1.2.1-r1079-osx-x64.zip libimobiledevice.zip 2812e01fc7c09b5980b46b97236b2981dbec7307
rm -rf ../resources/libimobiledevice rm -rf ../resources/libimobiledevice
mkdir ../resources/libimobiledevice mkdir ../resources/libimobiledevice