@@ -33,7 +33,7 @@ appsig ?= -
33
33
# https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG20
34
34
# open -a 'iOS Simulator.app' foobar.crt #add cert to simulator keychain
35
35
36
- bundle_untracked ?= yes
36
+ bundle_untracked ?= 0
37
37
appdir ?= $(outdir ) /apps
38
38
appnames = $(patsubst $(macpin_sites ) /% ,% .app,$(wildcard $(macpin_sites ) /* ) )
39
39
gen_apps = $(patsubst $(macpin_sites ) /% ,$(appdir ) /% .app,$(wildcard $(macpin_sites ) /* ) )
@@ -60,8 +60,9 @@ test test.app release: codesign := yes
60
60
endif
61
61
wknightly : DYLD_FRAMEWORK_PATH=/Volumes/WebKit/WebKit.app/Contents/Frameworks/10.10
62
62
reinstall : allapps uninstall install
63
- release : bundle_untracked :=
64
63
noop : ;
64
+ # allow these targets to pull in all files in sites/*/
65
+ % .app install : bundle_untracked := 1
65
66
66
67
ifeq ($(IS_A_REMAKE ) ,)
67
68
# parent make invocation
71
72
72
73
# github settings for release: target
73
74
# ####
74
- VERSION := 1.3.0b1
75
+ VERSION := 1.3.0
75
76
LAST_TAG != git describe --abbrev=0 --tags
76
77
USER := kfix
77
78
REPO := MacPin
@@ -124,8 +125,8 @@ $(appdir)/%.app: $(macpin_sites)/% $(macpin_sites)/%/* $(appdir)/%.app/Contents/
124
125
$(patsubst % ,cp % $@ /Contents/MacOS/$* ;,$(filter $(outdir ) /exec/% ,$^ ) )
125
126
cp -RL templates/Resources $@ /Contents
126
127
# 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
129
130
install $(outdir ) /Frameworks/* .dylib $@ /Contents/Frameworks/
130
131
plutil -replace NSHumanReadableCopyright -string " built $( shell date) by $( shell id -F) " $@ /Contents/Info.plist
131
132
[ ! -f " $( macpin_sites) /$* /Makefile" ] || $(MAKE ) -C $@ /Contents/Resources
0 commit comments