mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-17 08:56:22 +01:00
macOS imobiledevice-net v1.3.6
and other fixes also not sure if this will help #56
This commit is contained in:
parent
be7c48b409
commit
71010fce8b
11
restore.sh
11
restore.sh
@ -179,9 +179,7 @@ function SelectVersion {
|
|||||||
elif [[ $Mode == 'kDFU' ]]; then
|
elif [[ $Mode == 'kDFU' ]]; then
|
||||||
Action
|
Action
|
||||||
fi
|
fi
|
||||||
if [ $ProductType != iPhone5,3 ] && [ $ProductType != iPhone5,4 ]; then
|
|
||||||
Selection=("iOS 8.4.1")
|
Selection=("iOS 8.4.1")
|
||||||
fi
|
|
||||||
if [ $ProductType == iPad2,1 ] || [ $ProductType == iPad2,2 ] ||
|
if [ $ProductType == iPad2,1 ] || [ $ProductType == iPad2,2 ] ||
|
||||||
[ $ProductType == iPad2,3 ] || [ $ProductType == iPhone4,1 ]; then
|
[ $ProductType == iPad2,3 ] || [ $ProductType == iPhone4,1 ]; then
|
||||||
Selection+=("iOS 6.1.3")
|
Selection+=("iOS 6.1.3")
|
||||||
@ -234,7 +232,6 @@ function SaveOTABlobs {
|
|||||||
else
|
else
|
||||||
$tsschecker -d $ProductType -i $OSVer -e $UniqueChipID -m $BuildManifest -o -s
|
$tsschecker -d $ProductType -i $OSVer -e $UniqueChipID -m $BuildManifest -o -s
|
||||||
SHSHChk=${UniqueChipID}_${ProductType}_${OSVer}-${BuildVer}_*.shsh2
|
SHSHChk=${UniqueChipID}_${ProductType}_${OSVer}-${BuildVer}_*.shsh2
|
||||||
|
|
||||||
fi
|
fi
|
||||||
SHSH=$(ls $SHSHChk)
|
SHSH=$(ls $SHSHChk)
|
||||||
[ ! $SHSH ] && Error "Saving $OSVer blobs failed. Please run the script again" "It is also possible that $OSVer for $ProductType is no longer signed"
|
[ ! $SHSH ] && Error "Saving $OSVer blobs failed. Please run the script again" "It is also possible that $OSVer for $ProductType is no longer signed"
|
||||||
@ -448,7 +445,7 @@ function Downgrade {
|
|||||||
Log "Extracting IPSW..."
|
Log "Extracting IPSW..."
|
||||||
unzip -q $IPSW.ipsw -d $IPSW/
|
unzip -q $IPSW.ipsw -d $IPSW/
|
||||||
|
|
||||||
# this part won't be needed if futurerestore with odysseus64 is used (maybe sometime)
|
# create custom IPSW for 10.3.3
|
||||||
if [[ $A7Device == 1 ]]; then
|
if [[ $A7Device == 1 ]]; then
|
||||||
if [ ! -e $IPSWCustom.ipsw ]; then
|
if [ ! -e $IPSWCustom.ipsw ]; then
|
||||||
Log "Preparing custom IPSW..."
|
Log "Preparing custom IPSW..."
|
||||||
@ -492,7 +489,7 @@ function Downgrade {
|
|||||||
SaveOTABlobs
|
SaveOTABlobs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $Jailbreak != 1 ]] && [[ $A7Device != 1 ]]; then
|
if [[ $Jailbreak != 1 ]] && [[ $A7Device != 1 ]] && [[ $OSVer != 'Other' ]]; then
|
||||||
Log "Preparing for futurerestore... (Enter root password of your PC/Mac when prompted)"
|
Log "Preparing for futurerestore... (Enter root password of your PC/Mac when prompted)"
|
||||||
cd resources
|
cd resources
|
||||||
sudo bash -c "$python -m SimpleHTTPServer 80 &"
|
sudo bash -c "$python -m SimpleHTTPServer 80 &"
|
||||||
@ -547,7 +544,7 @@ function Downgrade {
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
Log "Restoring done!"
|
Log "Restoring done!"
|
||||||
if [[ $Jailbreak != 1 ]] && [[ $A7Device != 1 ]]; then
|
if [[ $Jailbreak != 1 ]] && [[ $A7Device != 1 ]] && [[ $OSVer != 'Other' ]]; then
|
||||||
Log "Stopping local server... (Enter root password of your PC/Mac when prompted)"
|
Log "Stopping local server... (Enter root password of your PC/Mac when prompted)"
|
||||||
ps aux | awk '/python/ {print "sudo kill -9 "$2" 2>/dev/null"}' | bash
|
ps aux | awk '/python/ {print "sudo kill -9 "$2" 2>/dev/null"}' | bash
|
||||||
fi
|
fi
|
||||||
@ -606,7 +603,7 @@ function InstallDependencies {
|
|||||||
elif [[ $OSTYPE == "darwin"* ]]; then
|
elif [[ $OSTYPE == "darwin"* ]]; then
|
||||||
# macOS
|
# macOS
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
SaveFile https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.4/libimobiledevice.1.2.1-r1079-osx-x64.zip libimobiledevice.zip 2812e01fc7c09b5980b46b97236b2981dbec7307
|
SaveFile https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.6/libimobiledevice.1.2.1-r1091-osx-x64.zip libimobiledevice.zip dba9ca5399e9ff7e39f0062d63753d1a0c749224
|
||||||
|
|
||||||
else
|
else
|
||||||
Error "Distro not detected/supported by the install script." "See the repo README for supported OS versions/distros"
|
Error "Distro not detected/supported by the install script." "See the repo README for supported OS versions/distros"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user