forked from jocmp/capyreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (46 loc) · 1.65 KB
/
Makefile
File metadata and controls
63 lines (46 loc) · 1.65 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
SHELL:=/usr/bin/env bash
FASTLANE ?= bundle exec fastlane
.PHONY: test release-secrets deploy-production
.PHONY: assets
assets:
$(MAKE) -C article_forge clean build
.PHONY: check
check: ## Type-check JavaScript files
npx -p typescript tsc --noEmit
.PHONY: bump-release-dev
bump-release-dev: ## Bump GitHub version
./script/bumpver update --tag=dev --push
.PHONY: bump-release-production
bump-release-production: ## Bump Google Play version
./script/bumpver update --tag=final
.PHONY: changelog
changelog: ## Prep next release notes
./scripts/changelog
test: ## Run all tests
$(FASTLANE) test
deploy-production: release-secrets
$(FASTLANE) production
deploy-github-release: shared-release-secrets
$(FASTLANE) github_release
deploy-free-nightly: shared-release-secrets
$(FASTLANE) free_nightly
.SILENT:
release-secrets: shared-release-secrets
echo ${ENCODED_GOOGLE_PLAY_CREDENTIALS} | base64 --decode > ./google-play-service-account.json
.SILENT:
shared-release-secrets:
echo ${ENCODED_GOOGLE_SERVICES} | base64 --decode > ./app/google-services.json
echo ${ENCODED_RELEASE_KEYSTORE} | base64 --decode > ./release.keystore
echo ${ENCODED_SECRETS_PROPERTIES} | base64 --decode > ./secrets.properties
.PHONY: bench-profile
bench-profile: ## Run refresh profile benchmark
./gradlew :bench:run --args="refresh-profile"
.PHONY: bench-reset
bench-reset: ## Delete bench data
./gradlew :bench:run --args="reset"
.PHONY: install-tailscale
install-tailscale: ## Install Tailscale on emulator
./script/install-tailscale
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'