Fix tool extracting and color output on Windows

This commit is contained in:
LukeZGD 2021-09-29 23:19:18 +08:00
parent c3c20128b2
commit bacb2fdf19
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# iOS-OTA-Downgrader # iOS-OTA-Downgrader
### Downgrade/restore and jailbreak iOS devices to signed OTA firmwares ### Downgrade/restore and jailbreak iOS devices to signed OTA firmwares
- **Linux, macOS, and Windows** are supported - **Linux, macOS, and Windows** are supported
- Windows support is limited. [MSYS2](https://www.msys2.org/#installation) and iTunes 64-bit are required. To run the script, click `restore.cmd`. - Windows support is limited. [MSYS2](https://www.msys2.org/#installation) and iTunes 64-bit are required. To run the script, click `restore.cmd`
- Windows users can also create a Linux live USB (see Requirements) - Windows users can also create a Linux live USB (see Requirements)
- iOS 8.4.1 and 6.1.3 downgrades have the option to **jailbreak** the install - iOS 8.4.1 and 6.1.3 downgrades have the option to **jailbreak** the install
- For iOS 10.3.3, use [TotallyNotSpyware](https://totally-not.spyware.lol) or [sockH3lix](https://github.com/SongXiaoXi/sockH3lix) to jailbreak - For iOS 10.3.3, use [TotallyNotSpyware](https://totally-not.spyware.lol) or [sockH3lix](https://github.com/SongXiaoXi/sockH3lix) to jailbreak

View File

@ -166,7 +166,7 @@ InstallDepends() {
Log "Downloading Windows tools..." Log "Downloading Windows tools..."
SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip a7de26af8f2e94ebd44f5080d973c03035cf91f8 SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip a7de26af8f2e94ebd44f5080d973c03035cf91f8
Log "Extracting Windows tools..." Log "Extracting Windows tools..."
unzip -fq tools_win.zip -d ../resources/tools unzip -oq tools_win.zip -d ../resources/tools
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "669dec0d0c257066f22a0664dcef2f58cebbcadf") libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "669dec0d0c257066f22a0664dcef2f58cebbcadf")
else else

View File

@ -10,6 +10,7 @@ cd "$(dirname $0)"
. ./resources/ipsw.sh . ./resources/ipsw.sh
if [[ $1 != "NoColor" && $2 != "NoColor" ]]; then if [[ $1 != "NoColor" && $2 != "NoColor" ]]; then
TERM=xterm-256color
Color_R=$(tput setaf 9) Color_R=$(tput setaf 9)
Color_G=$(tput setaf 10) Color_G=$(tput setaf 10)
Color_B=$(tput setaf 12) Color_B=$(tput setaf 12)