Skip to content

Commit 7e5e889

Browse files
committed
android: bump versionCode on tag to trigger fdroid builds
Previously, versionCode was only set by the Play Store builder and never committed back to the repo, so fdroid wouldn't detect updates. This bumps versionCode at tag time for fdroid. The builder still overrides it with the Play Store value Updates tailscale/tailscale#18969 Signed-off-by: kari-ts <kari@tailscale.com>
1 parent b83495b commit 7e5e889

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,16 @@ androidpath:
270270
@echo "export ANDROID_SDK_ROOT=$(ANDROID_SDK_ROOT)"
271271
@echo 'export PATH=$(ANDROID_HOME)/cmdline-tools/latest/bin:$(ANDROID_HOME)/platform-tools:$$PATH'
272272

273-
.PHONY: tag_release
274-
tag_release: debug-symbols tailscale.version ## Tag the current commit with the current version
275-
source tailscale.version && git tag -a "$${VERSION_LONG}" -m "OSS and Version updated to $${VERSION_LONG}"
276-
277-
.PHONY: bumposs ## Bump to the latest oss and update the versions.
278-
bumposs: update-oss tailscale.version
279-
source tailscale.version && git commit -sm "android: bump OSS" -m "OSS and Version updated to $${VERSION_LONG}" go.toolchain.rev android/build.gradle go.mod go.sum
273+
## Bump versionCode, amend the current commit, and tag it
274+
tag_release: debug-symbols tailscale.version bump_version_code
275+
git add android/build.gradle
276+
git commit --amend --no-edit
277+
source tailscale.version && git tag -a "$${VERSION_LONG}" -m "OSS and Version updated to $${VERSION_LONG}"
278+
279+
## Bump to the latest oss, increment versionCode, and tag.
280+
.PHONY: bumposs
281+
bumposs: update-oss tailscale.version bump_version_code
282+
source tailscale.version && git commit -sm "android: bump OSS" -m "OSS and Version updated to $${VERSION_LONG}" go.toolchain.rev android/build.gradle go.mod go.sum
280283
source tailscale.version && git tag -a "$${VERSION_LONG}" -m "OSS and Version updated to $${VERSION_LONG}"
281284

282285
.PHONY: bump_version_code ## Bump the version code in build.gradle

0 commit comments

Comments
 (0)