From 4348ec5cef04f1612cefadd4eb30cc3754a62743 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 24 Dec 2022 12:05:01 +0800 Subject: [PATCH] Update all packages on Windows MSYS2 --- resources/depends.sh | 7 ++++++- resources/device.sh | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/depends.sh b/resources/depends.sh index 5363822..61e0831 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -169,6 +169,11 @@ InstallDepends() { Echo "* Enter your user password when prompted" Input "Press Enter/Return to continue (or press Ctrl+C to cancel)" read -s + elif [[ $platform == "win" ]]; then + Echo "* iOS-OTA-Downgrader will be installing dependencies from MSYS2" + Echo "* Note that you may have to run the script more than once" + Input "Press Enter/Return to continue (or press Ctrl+C to cancel)" + read -s fi if [[ -e /etc/debian_version ]]; then @@ -214,7 +219,7 @@ InstallDepends() { Echo "* The script will detect this automatically and will use the Homebrew/MacPorts versions of the tools" elif [[ $platform == "win" ]]; then - pacman -Sy --noconfirm --needed ca-certificates curl libcurl openssh unzip zip + pacman -Syu --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") if [[ ! $(ls ../resources/tools/*win*) ]]; then SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip 4436d23034e9bec1b855aabb69ae0013fec5e2cb diff --git a/resources/device.sh b/resources/device.sh index 505518e..584ef37 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -454,6 +454,7 @@ kDFU() { Input "Press Enter/Return to continue (or press Ctrl+C to cancel)" read -s Log "Entering kDFU mode..." + Echo "* This may take a while." $SCP -P 2222 resources/tools/$kloader tmp/pwnediBSS root@127.0.0.1:/tmp if [[ $? == 0 ]]; then $SSH -p 2222 root@127.0.0.1 "chmod +x /tmp/$kloader; /tmp/$kloader /tmp/pwnediBSS" &