mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Update futurerestore.sh
This commit is contained in:
parent
9040db1fca
commit
c848832e4d
@ -1,58 +1,48 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export libipatcher=0
|
trap 'echo "Exiting..."' EXIT
|
||||||
|
|
||||||
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
|
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
|
||||||
|
|
||||||
# This script can be used to compile tools used by iOS-OTA-Downgrader for Linux
|
echo "This script can be used to compile tools used by iOS-OTA-Downgrader for Linux"
|
||||||
|
|
||||||
function Clone {
|
function Clone {
|
||||||
git clone $3 https://github.com/$1/$2
|
git clone $3 https://github.com/$1/$2
|
||||||
}
|
}
|
||||||
|
|
||||||
function Compile {
|
function Compile {
|
||||||
Clone $1 $2 $3
|
[[ $3 == --recursive ]] && Clone $1 $2 $3 || Clone $1 $2
|
||||||
cd $2
|
cd $2
|
||||||
[[ $2 == libipatcher ]] && git checkout v1
|
[[ -e autogen.sh ]] && ./autogen.sh $3 $4
|
||||||
if [[ $2 == libimobiledevice ]]; then
|
|
||||||
./autogen.sh
|
|
||||||
elif [[ -e autogen.sh ]]; then
|
|
||||||
./autogen.sh --enable-static --disable-shared
|
|
||||||
fi
|
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
if [[ ! -z $UBUNTU_CODENAME ]]; then
|
if [[ $UBUNTU_CODENAME != "focal" ]]; then
|
||||||
sudo apt update
|
echo "This compile script supports Ubuntu 20.04 only"
|
||||||
sudo apt install -y libtool automake g++ python-dev libzip-dev libcurl4-openssl-dev cmake libssl-dev libusb-1.0-0-dev libreadline-dev libbz2-dev libpng-dev pkg-config git
|
exit 1
|
||||||
elif [[ $ID == fedora ]]; then
|
|
||||||
sudo dnf install automake gcc-g++ libcurl-devel libusb-devel libtool libzip-devel make openssl-devel pkgconf-pkg-config readline-devel
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y libtool automake g++ python-dev libzip-dev libcurl4-openssl-dev cmake libssl-dev libusb-1.0-0-dev libreadline-dev libbz2-dev libpng-dev pkg-config git
|
||||||
|
|
||||||
Compile matteyeux partial-zip #partialzip_linux
|
Compile matteyeux partial-zip #partialzip_linux
|
||||||
Compile lzfse lzfse
|
Compile lzfse lzfse
|
||||||
Compile libimobiledevice libplist
|
Compile libimobiledevice libplist
|
||||||
Compile libimobiledevice libusbmuxd
|
Compile libimobiledevice libusbmuxd
|
||||||
Compile libimobiledevice libimobiledevice
|
Compile libimobiledevice libimobiledevice
|
||||||
Compile LukeZGD libirecovery #irecovery_linux
|
Compile LukeZGD libirecovery #irecovery_linux
|
||||||
Compile LukeZGD libgeneral
|
Compile LukeZGD libgeneral --enable-static --disable-shared
|
||||||
Compile LukeZGD libfragmentzip
|
Compile LukeZGD libfragmentzip --enable-static --disable-shared
|
||||||
Compile LukeZGD img4tool
|
Compile LukeZGD img4tool --enable-static --disable-shared
|
||||||
|
|
||||||
if [[ $libipatcher != 0 ]]; then
|
|
||||||
Clone Merculous xpwn
|
|
||||||
cd xpwn
|
|
||||||
sudo python3 install.py
|
|
||||||
cd ..
|
|
||||||
Compile tihmstar libipatcher --recursive
|
|
||||||
fi
|
|
||||||
|
|
||||||
Compile tihmstar tsschecker --recursive #tsschecker_linux
|
Compile tihmstar tsschecker --recursive #tsschecker_linux
|
||||||
Compile LukeZGD futurerestore --recursive #futurerestore2_linux
|
Compile LukeeGD futurerestore --recursive #futurerestore2_linux
|
||||||
|
|
||||||
mkdir tools
|
mkdir tools
|
||||||
cp partial-zip/partialzip tools/partialzip_linux
|
cp partial-zip/partialzip tools/partialzip_linux
|
||||||
cp libirecovery/tools/irecovery tools/irecovery_linux
|
cp libirecovery/tools/irecovery tools/irecovery_linux
|
||||||
cp tsschecker/tsschecker/tsschecker tools/tsschecker_linux
|
cp tsschecker/tsschecker/tsschecker tools/tsschecker_linux
|
||||||
cp futurerestore/futurerestore/futurerestore tools/futurerestore2_linux
|
cp futurerestore/futurerestore/futurerestore tools/futurerestore2_linux
|
||||||
|
|
||||||
|
echo "Done"
|
||||||
|
Loading…
Reference in New Issue
Block a user