Skip to content

Commit ff897a5

Browse files
committed
release-candidate 1.3.0
1 parent ebadb1f commit ff897a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3737
appdir ?= $(outdir)/apps
3838
appnames = $(patsubst $(macpin_sites)/%,%.app,$(wildcard $(macpin_sites)/*))
3939
gen_apps = $(patsubst $(macpin_sites)/%,$(appdir)/%.app,$(wildcard $(macpin_sites)/*))
@@ -60,8 +60,9 @@ test test.app release: codesign := yes
6060
endif
6161
wknightly: DYLD_FRAMEWORK_PATH=/Volumes/WebKit/WebKit.app/Contents/Frameworks/10.10
6262
reinstall: allapps uninstall install
63-
release: bundle_untracked :=
6463
noop: ;
64+
#allow these targets to pull in all files in sites/*/
65+
%.app install: bundle_untracked := 1
6566

6667
ifeq ($(IS_A_REMAKE),)
6768
# parent make invocation
@@ -71,7 +72,7 @@ endif
7172

7273
# github settings for release: target
7374
#####
74-
VERSION := 1.3.0b1
75+
VERSION := 1.3.0
7576
LAST_TAG != git describe --abbrev=0 --tags
7677
USER := kfix
7778
REPO := 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

Comments
 (0)