-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
47 lines (40 loc) · 928 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
VERSION = 2.3.2
DIST_PATH = dist
OS := `echo $(shell uname) | tr A-Z a-z`
ARCH := $(shell arch)
include makefiles/build.mk
include makefiles/appdir.mk
include makefiles/install.mk
include makefiles/dev.mk
include makefiles/qa.mk
include makefiles/linux-builder.mk
include makefiles/glyphs.mk
.PHONY: configure
configure:
make setup-qa
go work sync
wails doctor
.PHONY: generate
generate:
./scripts/update-version.mjs wails.json "$(VERSION)"
wails generate module
.PHONY: clean
clean:
rm -rf ui/node_modules
rm -rf ui/dist
rm -rf "$(BUILD_PATH)"
rm -rf "$(DIST_PATH)"
.PHONY: publish
publish:
# Add Makefile We add the file because of the $VERSION variable
git add Makefile
# Update changelog
node ./scripts/add-release-link.mjs "$(VERSION)"
git add CHANGELOG.md
git commit -m "docs: Release $(VERSION) 🔥"
# Create tag
git tag "v$(VERSION)"
git push
git push --tags
$(DIST_PATH):
mkdir -p $(DIST_PATH)