]> git.saurik.com Git - ldid.git/commitdiff
Improve compatibility across different Cydia eras.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 19 Feb 2019 05:55:19 +0000 (21:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 19 Feb 2019 05:55:19 +0000 (21:55 -0800)
control
sysroot.sh

diff --git a/control b/control
index 5ef6018786481278ca4aa3b677ac2a14b26243d3..73136bebf13fd49691efbe8e245949748b3ee270 100644 (file)
--- a/control
+++ b/control
@@ -8,5 +8,5 @@ Description: pseudo-codesign Mach-O files
 Name: Link Identity Editor
 Author: Jay Freeman (saurik) <saurik@saurik.com>
 Depiction: http://cydia.saurik.com/info/ldid/
-Depends: libplist
+Depends: libplist (>= 2.0.0), openssl
 Tag: purpose::console, role::developer
index 599170102e36a1df2682126a0d2c950bee3f8968..e595621d8fbf5b8869221806f12de6c7343ed0b3 100755 (executable)
@@ -21,3 +21,11 @@ merge libssl1.0_1.0.2q-1_iphoneos-arm.deb
 merge libssl-dev_1.0.2q-1_iphoneos-arm.deb
 merge libplist_2.0.0-1_iphoneos-arm.deb
 popd
+
+for lib in libplist libcrypto; do
+    for dylib in sysroot*/usr/lib/"${lib}".*.dylib; do
+        echo install_name_tool -id /usr/lib/"${lib}".dylib "${dylib}"
+        chmod 755 "${dylib}"
+        install_name_tool -id /usr/lib/"${lib}".dylib "${dylib}"
+    done
+done