]> git.saurik.com Git - ldid.git/blame - sysroot.sh
Add -d to pair with -D, and also -h compatibility.
[ldid.git] / sysroot.sh
CommitLineData
6b3aca98
JF
1#!/bin/bash
2set -e
3
4rm -rf sysroot32 sysroot64
5mkdir -p sysroot32 sysroot64
6
7function merge() {
8 wget --no-check-certificate "${apt}/$1"
9 dpkg-deb -x "$1" .
10}
11
12pushd sysroot32
13apt=http://apt.saurik.com/debs
14merge openssl_0.9.8zg-13_iphoneos-arm.deb
15merge libplist_2.0.0-1_iphoneos-arm.deb
16popd
17
18pushd sysroot64
19apt=https://apt.bingner.com/debs/1443.00
20merge libssl1.0_1.0.2q-1_iphoneos-arm.deb
21merge libssl-dev_1.0.2q-1_iphoneos-arm.deb
22merge libplist_2.0.0-1_iphoneos-arm.deb
23popd
043e3000
JF
24
25for lib in libplist libcrypto; do
26 for dylib in sysroot*/usr/lib/"${lib}".*.dylib; do
27 echo install_name_tool -id /usr/lib/"${lib}".dylib "${dylib}"
28 chmod 755 "${dylib}"
29 install_name_tool -id /usr/lib/"${lib}".dylib "${dylib}"
30 done
31done