mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-18 17:36:23 +01:00
Fix baseband issues on Windows
This commit is contained in:
parent
7632a6c88b
commit
84aa8142de
@ -77,7 +77,7 @@
|
|||||||
- [**openSUSE**](https://www.opensuse.org/) Tumbleweed, Leap 15.4
|
- [**openSUSE**](https://www.opensuse.org/) Tumbleweed, Leap 15.4
|
||||||
- [**Gentoo**](https://www.gentoo.org/) and Gentoo-based distros
|
- [**Gentoo**](https://www.gentoo.org/) and Gentoo-based distros
|
||||||
- **macOS** 10.13 and newer
|
- **macOS** 10.13 and newer
|
||||||
- **Windows** 7 and newer
|
- **Windows** 8.1 and newer
|
||||||
|
|
||||||
## Tools and other stuff used
|
## Tools and other stuff used
|
||||||
- cURL
|
- cURL
|
||||||
|
@ -105,11 +105,9 @@ SetToolPaths() {
|
|||||||
fi
|
fi
|
||||||
elif [[ $platform == "win" ]]; then
|
elif [[ $platform == "win" ]]; then
|
||||||
ping="ping -n 1"
|
ping="ping -n 1"
|
||||||
Log "WARNING - Using iOS-OTA-Downgrader on Windows is HIGHLY DISCOURAGED."
|
Log "WARNING - Using iOS-OTA-Downgrader on Windows is not recommended."
|
||||||
Echo "* Please use it on Linux or macOS instead."
|
Echo "* Please use it on Linux or macOS instead."
|
||||||
Echo "* You may still continue, but you might encounter problems with restoring the device."
|
Echo "* You may still continue, but you might encounter issues with restoring the device."
|
||||||
Echo "* You have been warned."
|
|
||||||
sleep 5
|
|
||||||
Input "Press Enter/Return to continue anyway (or press Ctrl+C to cancel)"
|
Input "Press Enter/Return to continue anyway (or press Ctrl+C to cancel)"
|
||||||
read -s
|
read -s
|
||||||
fi
|
fi
|
||||||
@ -216,10 +214,10 @@ InstallDepends() {
|
|||||||
Echo "* The script will detect this automatically and will use the Homebrew/MacPorts versions of the tools"
|
Echo "* The script will detect this automatically and will use the Homebrew/MacPorts versions of the tools"
|
||||||
|
|
||||||
elif [[ $platform == "win" ]]; then
|
elif [[ $platform == "win" ]]; then
|
||||||
pacman -Sy --noconfirm --needed ca-certificates curl openssh unzip zip
|
pacman -Sy --noconfirm --needed ca-certificates curl libcurl openssh unzip zip
|
||||||
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "75ae3af3347b89107f0f6b7e41fde42e6ccdd404")
|
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "75ae3af3347b89107f0f6b7e41fde42e6ccdd404")
|
||||||
if [[ ! $(ls ../resources/tools/*win*) ]]; then
|
if [[ ! $(ls ../resources/tools/*win*) ]]; then
|
||||||
SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip b8b727b74d3bbba2093bef5a156e30cb29d6eac7
|
SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip 4436d23034e9bec1b855aabb69ae0013fec5e2cb
|
||||||
Log "Extracting Windows tools..."
|
Log "Extracting Windows tools..."
|
||||||
unzip -oq tools_win.zip -d ../resources
|
unzip -oq tools_win.zip -d ../resources
|
||||||
fi
|
fi
|
||||||
|
@ -149,11 +149,6 @@ iDeviceRestore() {
|
|||||||
FRBaseband
|
FRBaseband
|
||||||
cp saved/baseband/$Baseband tmp/bbfw.tmp
|
cp saved/baseband/$Baseband tmp/bbfw.tmp
|
||||||
cp $BuildManifest tmp/
|
cp $BuildManifest tmp/
|
||||||
Log "WARNING - The restore is most likely to fail on updating baseband!!"
|
|
||||||
Echo "* This may or may not be fixed anytime soon."
|
|
||||||
Echo "* I highly suggest to do the restore in Linux/macOS instead to avoid issues."
|
|
||||||
Input "Press Enter/Return to continue anyway (or press Ctrl+C to cancel)"
|
|
||||||
read -s
|
|
||||||
fi
|
fi
|
||||||
Log "Running idevicere${re}store with command: $idevicerestore $ExtraArgs \"$IPSWRestore.ipsw\""
|
Log "Running idevicere${re}store with command: $idevicerestore $ExtraArgs \"$IPSWRestore.ipsw\""
|
||||||
$idevicerestore $ExtraArgs "$IPSWRestore.ipsw"
|
$idevicerestore $ExtraArgs "$IPSWRestore.ipsw"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user