Skip to content

Commit 9dbe84f

Browse files
committed
Add Makefile for creating release builds
1 parent 1dc4a1f commit 9dbe84f

3 files changed

Lines changed: 41 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ xcuserdata
1717
profile
1818
*.moved-aside
1919
DerivedData/
20+
21+
# Makefile products
22+
Resolution Menu.app
23+
Resolution Menu.zip

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PRODUCT=$(shell ls -d *.xcodeproj | head -n 1 | sed 's/.xcodeproj$$//' | sed 's/ /\\ /g')
2+
PROJECT=$(PRODUCT).xcodeproj
3+
INTERMEDIATE=build/Release/$(APP)
4+
APP=$(PRODUCT).app
5+
ZIP=$(PRODUCT).zip
6+
7+
.PHONY: all
8+
all: $(APP)
9+
10+
.PHONY: dist
11+
dist: $(ZIP)
12+
13+
$(APP): $(INTERMEDIATE)
14+
rm -Rf $(APP)
15+
cp -R build/Release/$(APP) ./
16+
17+
$(INTERMEDIATE): xcodebuild
18+
@true
19+
20+
.PHONY: xcodebuild
21+
xcodebuild:
22+
xcodebuild -project $(PROJECT) -target $(PRODUCT) -configuration Release
23+
24+
$(ZIP): $(APP)
25+
rm -f $(ZIP)
26+
zip -r $(ZIP) $(APP)
27+
28+
.PHONY: clean
29+
clean:
30+
rm -Rf build/
31+
32+
.PHONY: distclean
33+
distclean: clean
34+
rm -Rf $(APP)
35+
rm -f $(ZIP)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Then, for the change to take effect, either log out and back in or restart your
2626

2727
## Installation
2828

29-
Just fetch a DMG from the [release section](https://github.com/robbertkl/ResolutionMenu/releases) section and drag the application bundle to your Applications folder.
29+
Just fetch the latest ZIP from the [release section](https://github.com/robbertkl/ResolutionMenu/releases) section and put the extracted app into your Applications folder.
3030

31-
You might need to disable OS X Gatekeeper first: System Preferences > Security & Privacy > General tab > Allow apps downloaded from: Anywhere.
31+
You might need to disable OS X Gatekeeper to run it: *System Preferences* > *Security & Privacy* > *General* tab > *Allow apps downloaded from: Anywhere*.
3232

3333
## Authors
3434

0 commit comments

Comments
 (0)