mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 18:34:14 +01:00
An update
This commit is contained in:
parent
deb6e52631
commit
cef83c9dca
31
restore.sh
31
restore.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
trap 'Clean; exit' INT TERM EXIT
|
trap 'Clean; exit' INT TERM EXIT
|
||||||
if [[ $1 != 'NoColor' ]]; then
|
if [[ $1 != 'NoColor' ]] && [[ $2 != 'NoColor' ]]; then
|
||||||
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)
|
||||||
@ -67,20 +67,20 @@ function Main {
|
|||||||
elif [[ $OSTYPE == "darwin"* ]]; then
|
elif [[ $OSTYPE == "darwin"* ]]; then
|
||||||
macver=${1:-$(sw_vers -productVersion)}
|
macver=${1:-$(sw_vers -productVersion)}
|
||||||
platform="macos"
|
platform="macos"
|
||||||
bspatch="resources/tools/bspatch_$platform"
|
bspatch="resources/tools/bspatch_macos"
|
||||||
ideviceenterrecovery="resources/libimobiledevice_$platform/ideviceenterrecovery"
|
ideviceenterrecovery="resources/libimobiledevice_macos/ideviceenterrecovery"
|
||||||
ideviceinfo="resources/libimobiledevice_$platform/ideviceinfo"
|
ideviceinfo="resources/libimobiledevice_macos/ideviceinfo"
|
||||||
idevicerestore="resources/tools/idevicerestore_$platform"
|
idevicerestore="resources/tools/idevicerestore_macos"
|
||||||
iproxy="resources/libimobiledevice_$platform/iproxy"
|
iproxy="resources/libimobiledevice_macos/iproxy"
|
||||||
ipsw="tools/ipsw_$platform"
|
ipsw="tools/ipsw_macos"
|
||||||
irecovery="resources/libimobiledevice_$platform/irecovery"
|
irecovery="resources/libimobiledevice_macos/irecovery"
|
||||||
irecoverychk=$irecovery
|
irecoverychk=$irecovery
|
||||||
partialzip="resources/tools/partialzip_$platform"
|
partialzip="resources/tools/partialzip_macos"
|
||||||
pwnedDFU="resources/tools/pwnedDFU_$platform"
|
pwnedDFU="resources/tools/pwnedDFU_macos"
|
||||||
python="python"
|
python="python"
|
||||||
futurerestore1="resources/tools/futurerestore1_$platform"
|
futurerestore1="resources/tools/futurerestore1_macos"
|
||||||
futurerestore2="resources/tools/futurerestore2_$platform"
|
futurerestore2="resources/tools/futurerestore2_macos"
|
||||||
tsschecker="resources/tools/tsschecker_$platform"
|
tsschecker="resources/tools/tsschecker_macos"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ ! -d resources ]] && Error "resources folder cannot be found. Replace resources folder and try again" "If resources folder is present try removing spaces from path/folder name"
|
[[ ! -d resources ]] && Error "resources folder cannot be found. Replace resources folder and try again" "If resources folder is present try removing spaces from path/folder name"
|
||||||
@ -659,9 +659,10 @@ function InstallDependencies {
|
|||||||
|
|
||||||
elif [[ $OSTYPE == "darwin"* ]]; then
|
elif [[ $OSTYPE == "darwin"* ]]; then
|
||||||
# macOS
|
# macOS
|
||||||
imobiledevicenet=$(curl -s https://api.github.com/repos/libimobiledevice-win32/imobiledevice-net/releases/latest | grep browser_download_url | cut -d '"' -f 4 | awk '/osx-x64/ {print $1}')
|
#imobiledevicenet=$(curl -s https://api.github.com/repos/libimobiledevice-win32/imobiledevice-net/releases/latest | grep browser_download_url | cut -d '"' -f 4 | awk '/osx-x64/ {print $1}')
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
curl -L $imobiledevicenet -o libimobiledevice.zip
|
#curl -L $imobiledevicenet -o libimobiledevice.zip
|
||||||
|
SaveFile https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.14/libimobiledevice.1.2.1-r1116-osx-x64.zip libimobiledevice.zip 328e809dea350ae68fb644225bbf8469c0f0634b
|
||||||
Log "(Enter root password of your Mac when prompted)"
|
Log "(Enter root password of your Mac when prompted)"
|
||||||
sudo codesign --sign - --force --deep ../resources/tools/idevicerestore_macos
|
sudo codesign --sign - --force --deep ../resources/tools/idevicerestore_macos
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user