-
-
Save tknhs/8929786 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 | |
current_dir=$(cd $(dirname $0) && pwd) | |
export THEOS=/opt/theos | |
# clone theos.git | |
cd /opt | |
git clone git://github.com/DHowett/theos.git | |
# clone iphoneheaders.git | |
cd $THEOS | |
mv include include.bak | |
git clone git://github.com/rpetrich/iphoneheaders.git include | |
for FILE in include.bak/*.h; do mv $FILE include/; done | |
rmdir include.bak/ | |
# get IOSurfaceAPI.h | |
cd $THEOS/include/IOSurface/ | |
curl -O https://raw.github.com/javacom/toolchain4/master/Projects/IOSurfaceAPI.h | |
# clone CaptainHook.git | |
cd $THEOS/include/ | |
git clone git://github.com/rpetrich/CaptainHook.git | |
# clone theos-nic-templates.git | |
cd $THEOS/templates/ | |
git clone git://github.com/orikad/theos-nic-templates.git | |
# get dpkg-deb for Mac OS X | |
cd $THEOS | |
curl -O http://test.saurik.com/francis/dpkg-deb-fat | |
chmod a+x dpkg-deb-fat | |
sudo mkdir -p /usr/local/bin | |
sudo mv dpkg-deb-fat /usr/local/bin/dpkg-deb | |
# get ldid for Mac OS X | |
cd $THEOS/bin | |
curl -O http://dl.dropboxusercontent.com/u/3157793/ldid | |
chmod a+x ldid | |
# get libsubstrate.dylib | |
cd $THEOS/lib | |
curl -L http://cdn.hbang.ws/dl/libsubstrate_arm64.dylib > ./libsubstrate.dylib | |
chmod a+x libsubstrate.dylib | |
#get libactivator.dylib | |
echo "Downloading Activator header and library..." | |
ACTIVATOR_REPO="http://apt.thebigboss.org/repofiles/cydia" | |
curl -s -L "${ACTIVATOR_REPO}/dists/stable/main/binary-iphoneos-arm/Packages.bz2" > Packages.bz2 | |
pkg_path=$(bzcat Packages.bz2 | grep "debs2.0/libactivator" | awk '{print $2}') | |
pkg=$(basename $pkg_path) | |
curl -s -L "${ACTIVATOR_REPO}/${pkg_path}" > $pkg | |
ar -p $pkg data.tar.gz | tar -zxf - ./usr/include/libactivator/libactivator.h ./usr/lib/libactivator.dylib | |
mv ./usr/include/libactivator $THEOS/include | |
mv ./usr/lib/libactivator.dylib $THEOS/lib | |
rm -rf usr Packages.bz2 $pkg | |
# remove install_theos.sh | |
echo "Removing $(basename $0)" | |
rm $current_dir/$(basename $0) | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment