Compile irecovery in resources instead of /usr/local

This commit is contained in:
LukeeGD 2020-09-13 22:26:49 +08:00
parent 3294372ea1
commit 02003f032b
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -11,4 +11,5 @@ iP*
saved/ saved/
resources/firmware/ resources/firmware/
resources/ipwndfu/ resources/ipwndfu/
resources/libirecovery/
tmp/ tmp/

0
resources/tools/pwnedDFU_macos Normal file → Executable file
View File

View File

@ -43,7 +43,7 @@ function Main {
ideviceenterrecovery="ideviceenterrecovery" ideviceenterrecovery="ideviceenterrecovery"
ideviceinfo="ideviceinfo" ideviceinfo="ideviceinfo"
iproxy="iproxy" iproxy="iproxy"
irecovery="env LD_LIBRARY_PATH=resources/lib /usr/local/bin/irecovery" irecovery="env LD_LIBRARY_PATH=resources/lib resources/libirecovery/bin/irecovery"
pwnedDFU="sudo LD_LIBRARY_PATH=resources/lib resources/tools/pwnedDFU_$platform" pwnedDFU="sudo LD_LIBRARY_PATH=resources/lib resources/tools/pwnedDFU_$platform"
python="python2" python="python2"
futurerestore1="sudo LD_PRELOAD=resources/lib/libcurl.so.3 LD_LIBRARY_PATH=resources/lib resources/tools/futurerestore1_linux" futurerestore1="sudo LD_PRELOAD=resources/lib/libcurl.so.3 LD_LIBRARY_PATH=resources/lib resources/tools/futurerestore1_linux"
@ -540,8 +540,8 @@ function InstallDependencies {
if [[ $platform == linux ]]; then if [[ $platform == linux ]]; then
Compile LukeZGD libirecovery Compile LukeZGD libirecovery
ln -sf /usr/local/lib/libirecovery.so.3 ../resources/lib/libirecovery-1.0.so.3 ln -sf ../libirecovery/lib/libirecovery.so.3 ../resources/lib/libirecovery-1.0.so.3
ln -sf /usr/local/lib/libirecovery.so.3 ../resources/lib/libirecovery.so.3 ln -sf ../libirecovery/lib/libirecovery.so.3 ../resources/lib/libirecovery.so.3
else else
rm -rf ../resources/libimobiledevice_$platform rm -rf ../resources/libimobiledevice_$platform
mkdir ../resources/libimobiledevice_$platform mkdir ../resources/libimobiledevice_$platform
@ -556,8 +556,8 @@ function InstallDependencies {
function Compile { function Compile {
git clone --depth 1 https://github.com/$1/$2.git git clone --depth 1 https://github.com/$1/$2.git
cd $2 cd $2
./autogen.sh ./autogen.sh --prefix="$(dirname $(dirname $(pwd)))/resources/$2"
sudo make install make install
cd .. cd ..
sudo rm -rf $2 sudo rm -rf $2
} }