-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (46 loc) · 1.92 KB
/
Makefile
File metadata and controls
65 lines (46 loc) · 1.92 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
BINARY := bin/ggcode
PKG := github.com/topcheer/ggcode/cmd/ggcode
INSTALLER_PKG := github.com/topcheer/ggcode/cmd/ggcode-installer
.PHONY: build build-desktop test lint verify-ci knight-eval install install-installer install-git-hooks clean store-deploy store-deploy-ios store-deploy-android store-version store-screenshots
TAGS := goolm
build:
go build -tags "$(TAGS)" -o $(BINARY) ./cmd/ggcode
build-desktop:
cd desktop/ggcode-desktop && CGO_ENABLED=1 go build -tags "$(TAGS)" -ldflags "-X main.Version=$$(git describe --tags --always --dirty 2>/dev/null || echo dev)" -o ../../bin/ggcode-desktop .
test:
go test -tags "$(TAGS)" ./...
lint:
go vet -tags "$(TAGS)" ./...
verify-ci:
./scripts/dev/verify-ci.sh
knight-eval:
./scripts/dev/knight-eval.sh
install:
go install $(PKG)
install-installer:
go install $(INSTALLER_PKG)
install-git-hooks:
git config core.hooksPath .githooks
chmod +x .githooks/pre-commit scripts/dev/verify-ci.sh
clean:
rm -rf bin/
# ── Mobile App Store Deployment ──────────────────────
# Usage:
# make store-deploy # Both platforms, auto version from git tag
# make store-deploy-ios # iOS only
# make store-deploy-android # Android only
# make store-deploy VERSION=1.4.0 # Bump version, deploy both
# make store-version # Show current version
# make store-tag # Create git tag for current version
store-deploy:
cd mobile/flutter && bash scripts/store_deploy.sh $(VERSION)
store-deploy-ios:
cd mobile/flutter && bash scripts/store_deploy.sh ios
store-deploy-android:
cd mobile/flutter && bash scripts/store_deploy.sh android
store-version:
cd mobile/flutter && bash scripts/store_deploy.sh --current
store-tag:
cd mobile/flutter && bash scripts/store_deploy.sh --tag
store-release:
cd mobile/flutter && bash scripts/store_deploy.sh --release