X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/2587a89dd030beca3ea2733e34342e5ee54c9896..2b49cff9c356b460efefc1786a13002ad5f028c5:/makefile?ds=sidebyside diff --git a/makefile b/makefile index 78a55c10..be9ae5f7 100644 --- a/makefile +++ b/makefile @@ -118,22 +118,27 @@ sysroot: sysroot.sh @echo 1>&2 @exit 1 -MobileCydia: sysroot $(object) +MobileCydia: sysroot $(object) entitlements.xml @echo "[link] $(object:Objects/%=%)" @$(cycc) $(filter %.o,$^) $(flags) $(link) $(uikit) + @cp -a $@ bins/$@-$(version) @echo "[strp] $@" @strip -no_uuid $@ @echo "[sign] $@" - @ldid -T0 -Slaunch.xml $@ || { rm -f $@ && false; } + @ldid -T0 -Sentitlements.xml $@ || { rm -f $@ && false; } CydiaAppliance: CydiaAppliance.mm $(cycc) $(filter %.mm,$^) $(flags) -bundle $(link) $(backrow) +cfversion: cfversion.mm + $(cycc) $(filter %.mm,$^) $(flags) -framework CoreFoundation + @ldid -T0 -S $@ + postinst: postinst.mm Sources.mm Sources.h CyteKit/stringWithUTF8Bytes.mm CyteKit/stringWithUTF8Bytes.h CyteKit/UCPlatform.h $(cycc) $(filter %.mm,$^) $(flags) -framework CoreFoundation -framework Foundation -framework UIKit -lpcre - @ldid -T0 -S postinst + @ldid -T0 -S $@ -debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia preinst postinst $(images) $(shell find MobileCydia.app) cydia.control +debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia preinst postinst cfversion $(images) $(shell find MobileCydia.app) cydia.control Library/firmware.sh sudo rm -rf _ mkdir -p _/var/lib/cydia @@ -144,6 +149,7 @@ debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia preinst postinst $(images) $ mkdir -p _/usr/libexec cp -a Library _/usr/libexec/cydia cp -a sysroot/usr/bin/du _/usr/libexec/cydia + cp -a cfversion _/usr/libexec/cydia mkdir -p _/System/Library cp -a LaunchDaemons _/System/Library/LaunchDaemons @@ -200,4 +206,4 @@ $(lproj_deb): $(shell find MobileCydia.app -name '*.strings') cydia-lproj.contro package: debs/cydia_$(version)_iphoneos-arm.deb $(lproj_deb) -.PHONY: all clean package sign +.PHONY: all clean package