]>
Commit | Line | Data |
---|---|---|
6b3aca98 JF |
1 | #!/bin/bash |
2 | set -e | |
3 | ||
4 | rm -rf sysroot32 sysroot64 | |
5 | mkdir -p sysroot32 sysroot64 | |
6 | ||
7 | function merge() { | |
8 | wget --no-check-certificate "${apt}/$1" | |
9 | dpkg-deb -x "$1" . | |
10 | } | |
11 | ||
12 | pushd sysroot32 | |
13 | apt=http://apt.saurik.com/debs | |
14 | merge openssl_0.9.8zg-13_iphoneos-arm.deb | |
15 | merge libplist_2.0.0-1_iphoneos-arm.deb | |
16 | popd | |
17 | ||
18 | pushd sysroot64 | |
19 | apt=https://apt.bingner.com/debs/1443.00 | |
20 | merge libssl1.0_1.0.2q-1_iphoneos-arm.deb | |
21 | merge libssl-dev_1.0.2q-1_iphoneos-arm.deb | |
22 | merge libplist_2.0.0-1_iphoneos-arm.deb | |
23 | popd | |
043e3000 JF |
24 | |
25 | for 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 | |
31 | done |