]> git.saurik.com Git - afc2d.git/blobdiff - make.sh
Use Substrate to modify Services.plist on iOS 8+.
[afc2d.git] / make.sh
diff --git a/make.sh b/make.sh
index 29972fc8c2bc38d6f8840fa5740bcfb00d4c990d..7e32a60b76a423662f8c203a1f9d576e30a09a6b 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -3,6 +3,11 @@ set -e
 ver=$(git describe --tags --dirty="+" --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@;s@%@~@g')
 sudo rm -rf _
 mkdir -p _/DEBIAN
+ms=_/Library/MobileSubstrate/DynamicLibraries
+mkdir -p "${ms}"
+cp -a afc2dService.plist "${ms}"
+plutil -convert binary1 "${ms}"/afc2dService.plist
+cycc -i2.0 -o"${ms}"/afc2dService.dylib -s afc2dService.mm -- -framework Foundation
 cycc -i2.0 -o_/DEBIAN/extrainst_ -- extrainst.mm -lz -framework Foundation
 cycc -i2.0 -o_/DEBIAN/postrm -- postrm.mm -lz -framework Foundation
 sed -e 's/\${ver}/'"${ver}"'/' control.in >_/DEBIAN/control