Automate version tags for each build
Some checks failed
Android CI / build (push) Has been cancelled
Some checks failed
Android CI / build (push) Has been cancelled
This commit is contained in:
14
Makefile
14
Makefile
@@ -9,12 +9,13 @@ APK_PATH := $(ANDROID_DIR)/app/build/outputs/apk/debug/app-debug.apk
|
||||
PUBLISHED_APK := $(DOWNLOADS_DIR)/app-debug.apk
|
||||
VERSION_FILE := $(META_DIR)/version.json
|
||||
|
||||
.PHONY: help client-version-bump client-build client-publish publish \
|
||||
.PHONY: help client-version-bump client-build client-tag client-publish publish \
|
||||
server-start server-stop server-restart server-status server-rebuild
|
||||
|
||||
help:
|
||||
@echo "Targets:"
|
||||
@echo " make client-build - bump version and build debug APK"
|
||||
@echo " make client-build - bump version, build debug APK, create git tag"
|
||||
@echo " make client-tag - create git tag for the current Android version"
|
||||
@echo " make client-publish - copy APK to website and refresh version metadata"
|
||||
@echo " make publish - bump version, build APK, publish client, reload nginx"
|
||||
@echo " make server-start - start nginx"
|
||||
@@ -26,15 +27,22 @@ help:
|
||||
client-version-bump:
|
||||
@$(PROJECT_ROOT)/scripts/bump_version.sh
|
||||
|
||||
client-tag:
|
||||
@$(PROJECT_ROOT)/scripts/create_version_tag.sh
|
||||
|
||||
client-build: client-version-bump
|
||||
cd $(ANDROID_DIR) && ./gradlew assembleDebug --no-daemon
|
||||
@$(PROJECT_ROOT)/scripts/create_version_tag.sh
|
||||
|
||||
client-publish:
|
||||
@mkdir -p $(DOWNLOADS_DIR) $(META_DIR)
|
||||
cp $(APK_PATH) $(PUBLISHED_APK)
|
||||
@$(PROJECT_ROOT)/scripts/update_site_metadata.sh
|
||||
|
||||
publish: client-build client-publish server-rebuild
|
||||
publish:
|
||||
@$(MAKE) client-build
|
||||
@$(MAKE) client-publish
|
||||
@$(MAKE) server-rebuild
|
||||
|
||||
server-start:
|
||||
sudo systemctl start nginx
|
||||
|
||||
Reference in New Issue
Block a user