-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (24 loc) · 706 Bytes
/
Makefile
File metadata and controls
26 lines (24 loc) · 706 Bytes
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
APP_NAME := Timebox
ifdef VERSION
VERSION_SET := 1
endif
install:
poetry install
dev:
poetry run python main.py
compile:
export APP_NAME=$(APP_NAME) && poetry run python setup.py py2app
debug: compile
open "dist/$(APP_NAME).app/Contents/MacOS/$(APP_NAME)"
release:
ifeq ($(VERSION_SET),1)
export VERSION=$(VERSION) && export APP_NAME=$(APP_NAME) && poetry run python setup.py py2app
poetry version $(VERSION)
git add pyproject.toml
git commit -m "Release $(VERSION)"
git push
cd dist && zip -r "$(APP_NAME).app.zip" "$(APP_NAME).app"
gh release create $(VERSION) 'dist/$(APP_NAME).app.zip#$(APP_NAME).app.zip'
else
$(error VERSION not defined - use like this: make release VERSION=...)
endif