Last active
October 7, 2021 17:40
-
-
Save matteyeux/c8cab78a16545fda0dea2e61e6c2368a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to build futurerestore for GNU/Linux | |
# tested on Debian 9 and Ubuntu 18.04. | |
# Install libimobiledevice before running this script | |
# (https://gist.github.com/matteyeux/d7d8041a41ee8d664aaf5c3b99556ada) | |
# install liblzfse | |
git clone https://github.com/lzfse/lzfse.git | |
make -C lzfse && sudo make -C lzfse install | |
# install libfragmentzip needed by futurerestore | |
git clone https://github.com/encounter/libfragmentzip.git | |
cd libfragmentzip | |
./autogen.sh | |
make && sudo make install | |
cd .. | |
# clone | |
git clone https://github.com/s0uthwest/futurerestore.git | |
cd futurerestore | |
# download submodules | |
git submodule update --init | |
# there is a submodule in a submodule | |
cd external/tsschecker | |
git submodule update --init | |
cd ../.. | |
# tricky fix because of missing inclusion | |
content=$(cat external/img4tool/img4tool/lzssdec.c) | |
echo -en "#include <sys/types.h>\n$content)" > external/img4tool/img4tool/lzssdec.c | |
./autogen.sh | |
make | |
sudo ldconfig | |
echo "futurerestore for Linux should be in $(pwd)/futurerestore/futurerestore" |
it ask me for username and pass, But why when i entered them it refuse to continue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks