From bb99d698a27487af679f8c04c334d4ea840aea7a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 19 Aug 2014 19:14:27 -0700 Subject: [PATCH] Add a makefile mechanism for automatic deployment. --- xcode.mk | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/xcode.mk b/xcode.mk index 87eb376..b72d40d 100644 --- a/xcode.mk +++ b/xcode.mk @@ -24,7 +24,9 @@ include codesign.mk lipo := $(shell xcrun --sdk iphoneos -f lipo) +monotonic := $(shell git log -1 --pretty=format:%ct) version := $(shell git describe --always --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$$@+\1.\2@;s@^v@@;s@%@~@g') + deb := cycript_$(version)_iphoneos-arm.deb zip := cycript_$(version).zip @@ -45,9 +47,10 @@ links := links += Cycript.lib/libsubstrate.dylib links += Cycript.lib/cycript0.9 -all: cycript $(cycript) $(framework) +all := cycript $(cycript) $(framework) +all: $(all) -$(zip): all +$(zip): $(all) rm -f $@ zip -r9y $@ cycript Cycript.lib Cycript.{ios,osx} $(patsubst %,--exclude %,$(links)) zip -r9 $@ $(links) @@ -177,4 +180,8 @@ install: Cycript.lib/cycript Cycript.lib/libcycript.dylib Cycript.lib/libcycript sudo cp -af $(filter-out %.dylib,$^) /usr/bin sudo cp -af $(filter %.dylib,$^) /usr/lib -.PHONY: all clean install zip + +cast: $(zip) + appcast.sh cycript/mac $(monotonic) $(version) $< "$(CYCRIPT_CHANGES)" + +.PHONY: all cast clean install zip -- 2.47.2