Fix dependency install

- with minor changes and add a bit more info in readme
This commit is contained in:
LukeeGD 2020-02-04 23:33:45 +08:00
parent b69ac6eb25
commit 7372b0facc
2 changed files with 29 additions and 18 deletions

View File

@ -2,6 +2,7 @@
- This script can be used to downgrade almost any supported 32-bit device to **iOS 8.4.1** - This script can be used to downgrade almost any supported 32-bit device to **iOS 8.4.1**
- iPhone 4S and some iPad 2 devices also have the option to downgrade to **iOS 6.1.3** - iPhone 4S and some iPad 2 devices also have the option to downgrade to **iOS 6.1.3**
- This script will also restore your device to the latest baseband (N/A to devices with no baseband) - This script will also restore your device to the latest baseband (N/A to devices with no baseband)
- This script has a workaround for the activation error on iOS 10 devices
- This can also be used to enter pwnDFU mode for all supported devices - This can also be used to enter pwnDFU mode for all supported devices
- **For iPhone 5C, 8.4.1 OTA DOWNGRADING IS NOT SUPPORTED!** Supports entering pwnDFU mode ONLY - **For iPhone 5C, 8.4.1 OTA DOWNGRADING IS NOT SUPPORTED!** Supports entering pwnDFU mode ONLY
- **You do NOT need blobs to use this**, the script will get them for you - **You do NOT need blobs to use this**, the script will get them for you

View File

@ -329,39 +329,47 @@ function InstallDependencies {
. /etc/os-release 2> /dev/null . /etc/os-release 2> /dev/null
if [[ $(which pacman) ]] || [[ $NAME == "Arch Linux" ]]; then if [[ $(which pacman) ]] || [[ $NAME == "Arch Linux" ]]; then
sudo pacman -Sy --noconfirm bsdiff curl ifuse libcurl-compat libimobiledevice libpng12 libzip openssh openssl-1.0 unzip usbmuxd usbutils Arch
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
elif [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID == "16.04" ]]; then elif [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID == "16.04" ]]; then
Ubuntu Ubuntu
elif [[ $(which apt) ]] || [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID == "18.04" ]]; then elif [[ $(which apt) ]] || [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID == "18.04" ]]; then
Ubuntu Ubuntu
Ubuntu1804 Ubuntu1804
elif [[ $OSTYPE == "darwin"* ]]; then elif [[ $OSTYPE == "darwin"* ]]; then
if [[ ! $(which brew) ]]; then macOS
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew uninstall --ignore-dependencies usbmuxd
brew uninstall --ignore-dependencies libimobiledevice
brew install --HEAD usbmuxd
brew install --HEAD libimobiledevice
brew install libzip
brew install openssl
brew install lsusb
else else
echo "Distro not detected/supported. Please select manually" echo "Distro not detected/supported. Please select manually"
select opt in "Ubuntu 16.04" "Ubuntu 18.04" "Arch Linux" "macOS"; do select opt in "Ubuntu Xenial" "Ubuntu Bionic" "Arch Linux" "macOS"; do
case $opt in case $opt in
"Ubuntu 16.04" ) ubuntu; break;; "Ubuntu Xenial" ) Ubuntu; break;;
"Ubuntu 18.04" ) ubuntu; ubuntu1804; break;; "Ubuntu Bionic" ) Ubuntu; Ubuntu1804; break;;
"Arch Linux" ) arch; break;; "Arch Linux" ) Arch; break;;
"macOS" ) macos; break;; "macOS" ) macOS; break;;
esac esac
done done
fi fi
echo "Install script done! Please run the script again to proceed" echo "Install script done! Please run the script again to proceed"
} }
function Arch {
sudo pacman -Sy --noconfirm bsdiff curl ifuse libcurl-compat libimobiledevice libpng12 libzip openssh openssl-1.0 unzip usbmuxd usbutils
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
}
function macOS {
if [[ ! $(which brew) ]]; then
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew uninstall --ignore-dependencies usbmuxd
brew uninstall --ignore-dependencies libimobiledevice
brew install --HEAD usbmuxd
brew install --HEAD libimobiledevice
brew install libzip
brew install openssl
brew install lsusb
}
function Ubuntu { function Ubuntu {
sudo apt update sudo apt update
sudo apt -y install bsdiff curl ifuse libimobiledevice-utils libzip4 usbmuxd sudo apt -y install bsdiff curl ifuse libimobiledevice-utils libzip4 usbmuxd
@ -386,6 +394,8 @@ function Ubuntu1804 {
rm -rf tmp rm -rf tmp
} }
# ----------------
if [ ! $(which bspatch) ] || [ ! $(which ideviceinfo) ] || [ ! $(which ifuse) ] || [ ! $(which lsusb) ] || [ ! $(which ssh) ] if [ ! $(which bspatch) ] || [ ! $(which ideviceinfo) ] || [ ! $(which ifuse) ] || [ ! $(which lsusb) ] || [ ! $(which ssh) ]
then then
InstallDependencies InstallDependencies