From 716152b57d047574171944d7f601c47fdd51feba Mon Sep 17 00:00:00 2001 From: Jonathan Nobels Date: Mon, 12 Aug 2024 15:32:41 -0400 Subject: [PATCH] makefile: add bump_version_code recipe back (#464) updates tailscale/corp#21644 The docker build sill requires the recipe for bumping the version code by one before we run the second androidTV build. This was removed, which breaks the build. Signed-off-by: Jonathan Nobels --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index faa9924..ee0f151 100644 --- a/Makefile +++ b/Makefile @@ -185,6 +185,10 @@ bumposs: update-oss update-version git commit -sm "android: bumping OSS" -m "OSS and Version updated to ${VERSION_LONG}" android/build.gradle go.mod go.sum git tag -a "$(VERSION_LONG)" -m "OSS and Version updated to ${VERSION_LONG}" +.PHONY: bump_version_code +bump_version_code: ## Bump the version code in build.gradle + sed -i'.bak' 's/versionCode .*/versionCode $(VERSIONCODE_PLUSONE)/' android/build.gradle && rm android/build.gradle.bak + .PHONY: update-version update-version: ## Update the version in build.gradle sed -i'.bak' 's/versionName .*/versionName "$(VERSION_LONG)"/' android/build.gradle && rm android/build.gradle.bak