forked from blaise-io/acelink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (23 loc) · 854 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
VERSION := $(shell cat VERSION)
ARCHIVEDIR ?= $(CURDIR)/builds/archives/Ace.Link.$(VERSION).xcarchive
RELEASEDIR ?= $(CURDIR)/builds/Ace.Link.$(VERSION)
DOCKER_BUILDKIT ?= 1
build:
# Create a build
agvtool new-marketing-version $(VERSION)
xcodebuild -scheme 'Ace Link' archive -archivePath $(ARCHIVEDIR)
release:
# Create a new release DMG from a build
rm -rf $(RELEASEDIR)
mkdir -p $(RELEASEDIR)
cp -R '$(ARCHIVEDIR)/Products/Applications/Ace Link.app' $(RELEASEDIR)
ln -s /Applications $(RELEASEDIR)/Applications
hdiutil create -volname "Ace Link $(VERSION)" -srcfolder $(RELEASEDIR) -ov -format UDZO $(RELEASEDIR).dmg
rm -rf $(RELEASEDIR)
open -a finder $(CURDIR)/builds
open https://github.com/blaise-io/acelink/releases/new
release-tag:
# Create a new release tag
git tag $(VERSION)
git push origin --tags
.PHONY: $(MAKECMDGOALS)