mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-12 08:19:13 +01:00
Update depends with missing zip
also update some messages
This commit is contained in:
parent
584cc0d6f2
commit
c385b3aaef
@ -185,28 +185,28 @@ InstallDepends() {
|
||||
if [[ $ID == "arch" || $ID_LIKE == "arch" || $ID == "artix" ]]; then
|
||||
Echo "* Arch Linux repos do not ship python2, which is needed for ipwndfu"
|
||||
Echo "* If you need to use ipwndfu, python2 can be installed from the AUR"
|
||||
sudo pacman -Sy --noconfirm --needed base-devel bsdiff curl libimobiledevice openssh python udev unzip usbmuxd usbutils vim xmlstarlet zenity
|
||||
sudo pacman -Sy --noconfirm --needed base-devel bsdiff curl libimobiledevice openssh python udev unzip usbmuxd usbutils vim xmlstarlet zenity zip
|
||||
|
||||
elif [[ $ID == "gentoo" || $ID_LIKE == "gentoo" || $ID == "pentoo" ]]; then
|
||||
Echo "* Gentoo repos do not ship python2, which is needed for ipwndfu"
|
||||
Echo "* If you need to use ipwndfu, python2 can be installed from the official site"
|
||||
sudo emerge -av bsdiff net-misc/curl libimobiledevice openssh python udev unzip usbmuxd usbutils vim xmlstarlet zenity
|
||||
sudo emerge -av bsdiff net-misc/curl libimobiledevice openssh python udev unzip usbmuxd usbutils vim xmlstarlet zenity zip
|
||||
|
||||
elif [[ -n $UBUNTU_CODENAME && $VERSION_ID == "2"* ]] ||
|
||||
(( DebianVer >= 11 )) || [[ $DebianVer == "sid" ]]; then
|
||||
[[ -n $UBUNTU_CODENAME ]] && sudo add-apt-repository -y universe
|
||||
sudo apt update
|
||||
sudo apt install -y bsdiff curl libimobiledevice6 openssh-client python2 python3 unzip usbmuxd usbutils xmlstarlet xxd zenity
|
||||
sudo apt install -y bsdiff curl libimobiledevice6 openssh-client python2 python3 unzip usbmuxd usbutils xmlstarlet xxd zenity zip
|
||||
sudo systemctl enable --now udev systemd-udevd usbmuxd 2>/dev/null
|
||||
|
||||
elif [[ $ID == "fedora" || $ID == "nobara" ]] && (( VERSION_ID >= 36 )); then
|
||||
ln -sf /usr/lib64/libbz2.so.1.* ../resources/lib/libbz2.so.1.0
|
||||
sudo dnf install -y bsdiff ca-certificates libimobiledevice openssl python2 python3 systemd udev usbmuxd vim-common xmlstarlet zenity
|
||||
sudo dnf install -y bsdiff ca-certificates libimobiledevice openssl python2 python3 systemd udev usbmuxd vim-common xmlstarlet zenity zip
|
||||
sudo ln -sf /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-certificates.crt
|
||||
|
||||
elif [[ $ID == "opensuse-tumbleweed" || $PRETTY_NAME == *"Leap 15.4" ]]; then
|
||||
[[ $ID == "opensuse-leap" ]] && ln -sf /lib64/libreadline.so.7 ../resources/lib/libreadline.so.8
|
||||
sudo zypper -n in bsdiff curl libimobiledevice-1_0-6 openssl python-base python3 usbmuxd vim xmlstarlet zenity
|
||||
sudo zypper -n in bsdiff curl libimobiledevice-1_0-6 openssl python-base python3 usbmuxd unzip vim xmlstarlet zenity zip
|
||||
|
||||
elif [[ $platform == "macos" ]]; then
|
||||
xcode-select --install
|
||||
|
@ -91,12 +91,14 @@ GetDeviceValues() {
|
||||
read -p "$(Input 'Enter UniqueChipID (ECID, must be decimal):')" UniqueChipID
|
||||
fi
|
||||
else
|
||||
echo -e "\n${Color_R}[Error] No device detected. Please put the device in normal mode before proceeding. ${Color_N}"
|
||||
echo "${Color_Y}* Make sure to also trust this computer by selecting \"Trust\" at the pop-up. ${Color_N}"
|
||||
echo "${Color_Y}* For Windows/macOS users, double-check if the device is being detected by iTunes/Finder. ${Color_N}"
|
||||
echo "${Color_Y}* Recovery or DFU mode is also applicable. ${Color_N}"
|
||||
echo "${Color_Y}* To perform operations without an iOS device connected, add NoDevice as an argument. ${Color_N}"
|
||||
echo "${Color_Y}* For more details, read the \"Troubleshooting\" wiki page in GitHub ${Color_N}"
|
||||
echo -e "\n${Color_R}[Error] No device detected. Please connect the iOS device to proceed."
|
||||
echo "${Color_Y}* Make sure to also trust this computer by selecting \"Trust\" at the pop-up."
|
||||
[[ $platform != "linux" ]] && echo "* Double-check if the device is being detected by iTunes/Finder."
|
||||
[[ $platform == "macos" ]] && echo "* Also try installing libimobiledevice and libirecovery from Homebrew/MacPorts before retrying."
|
||||
[[ $platform == "linux" ]] && echo "* Also try running \"sudo systemctl restart usbmuxd\" before retrying."
|
||||
echo "* Recovery and DFU mode are also applicable."
|
||||
echo "* For more details, read the \"Troubleshooting\" wiki page in GitHub."
|
||||
Echo "* Troubleshooting link: https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/Troubleshooting"
|
||||
ExitWin 1
|
||||
fi
|
||||
|
||||
@ -287,11 +289,12 @@ EnterPwnDFU() {
|
||||
Log "Device in pwnDFU mode detected."
|
||||
fi
|
||||
elif [[ $pwnDFUDevice != 0 && $pwnD != 1 ]]; then
|
||||
echo -e "\n${Color_R}[Error] Failed to enter pwnDFU mode. Please run the script again ${Color_N}"
|
||||
echo "${Color_Y}* If the screen is black, exit DFU mode first by holding the TOP and HOME buttons for about 15 seconds. ${Color_N}"
|
||||
echo "${Color_Y}* This step may fail a lot, especially on Linux, and unfortunately there is nothing I can do about the low success rates. ${Color_N}"
|
||||
echo "${Color_Y}* The only option is to make sure you are using an Intel or Apple Silicon device, and to try multiple times ${Color_N}"
|
||||
Echo "* For more details, read the \"Troubleshooting\" wiki page in GitHub"
|
||||
echo -e "\n${Color_R}[Error] Failed to enter pwnDFU mode. Please run the script again"
|
||||
echo "${Color_Y}* If the screen is black, exit DFU mode first by holding the TOP and HOME buttons for about 15 seconds."
|
||||
echo "* This step may fail a lot, especially on Linux, and unfortunately there is nothing I can do about the low success rates."
|
||||
echo "* The only option is to make sure you are using an Intel or Apple Silicon device, and to try multiple times."
|
||||
echo "* For more details, read the \"Troubleshooting\" wiki page in GitHub"
|
||||
Echo "* Troubleshooting link: https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/Troubleshooting"
|
||||
ExitWin 1
|
||||
elif [[ $pwnDFUDevice == 0 ]]; then
|
||||
Log "Device in pwnDFU mode detected."
|
||||
|
@ -480,7 +480,7 @@ IPSW64() {
|
||||
mv -f $iBSSb.im4p $iBECb.im4p $IPSW/Firmware/dfu/
|
||||
fi
|
||||
cd $IPSW
|
||||
zip -rq0 ../$IPSWCustom.ipsw *
|
||||
zip -r0 ../$IPSWCustom.ipsw *
|
||||
cd ..
|
||||
mv $IPSW/ $IPSWCustom/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user