@@ -33,7 +33,7 @@ appsig ?= -
3333# https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG20
3434# open -a 'iOS Simulator.app' foobar.crt #add cert to simulator keychain
3535
36- bundle_untracked ?= yes
36+ bundle_untracked ?= 0
3737appdir ?= $(outdir ) /apps
3838appnames = $(patsubst $(macpin_sites ) /% ,% .app,$(wildcard $(macpin_sites ) /* ) )
3939gen_apps = $(patsubst $(macpin_sites ) /% ,$(appdir ) /% .app,$(wildcard $(macpin_sites ) /* ) )
@@ -60,8 +60,9 @@ test test.app release: codesign := yes
6060endif
6161wknightly : DYLD_FRAMEWORK_PATH=/Volumes/WebKit/WebKit.app/Contents/Frameworks/10.10
6262reinstall : allapps uninstall install
63- release : bundle_untracked :=
6463noop : ;
64+ # allow these targets to pull in all files in sites/*/
65+ % .app install : bundle_untracked := 1
6566
6667ifeq ($(IS_A_REMAKE ) ,)
6768# parent make invocation
7172
7273# github settings for release: target
7374# ####
74- VERSION := 1.3.0b1
75+ VERSION := 1.3.0
7576LAST_TAG != git describe --abbrev=0 --tags
7677USER := kfix
7778REPO := MacPin
@@ -124,8 +125,8 @@ $(appdir)/%.app: $(macpin_sites)/% $(macpin_sites)/%/* $(appdir)/%.app/Contents/
124125 $(patsubst % ,cp % $@ /Contents/MacOS/$* ;,$(filter $(outdir ) /exec/% ,$^ ) )
125126 cp -RL templates/Resources $@ /Contents
126127 # git ls-files -zc $(bundle_untracked) $(macpin_sites)/$* | xargs -0 -J % install -DT % $@/Contents/Resources/
127- [ ! -z " $( bundle_untracked) " ] || git archive v $( VERSION ) $(macpin_sites ) /$* / | tar -xv --strip-components 2 -C $@ /Contents/Resources
128- [ ! -n " $( bundle_untracked) " ] || cp -RL $(macpin_sites ) /$* /* $@ /Contents/Resources/
128+ (( $(bundle_untracked)) ) || git archive HEAD $(macpin_sites ) /$* / | tar -xv --strip-components 2 -C $@ /Contents/Resources
129+ (( $(bundle_untracked)) ) && cp -RL $(macpin_sites ) /$* /* $@ /Contents/Resources/ || true
129130 install $(outdir ) /Frameworks/* .dylib $@ /Contents/Frameworks/
130131 plutil -replace NSHumanReadableCopyright -string " built $( shell date) by $( shell id -F) " $@ /Contents/Info.plist
131132 [ ! -f " $( macpin_sites) /$* /Makefile" ] || $(MAKE ) -C $@ /Contents/Resources
0 commit comments