Makefile,android: shorten version environment variable

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/3/head
Elias Naur 4 years ago
parent 8f621e531a
commit a527c2abed

@ -19,7 +19,7 @@ aar:
go run gioui.org/cmd/gogio -ldflags "-X tailscale.com/version.LONG=$(VERSION_LONG) -X tailscale.com/version.SHORT=$(VERSION_SHORT)" -tags xversion -buildmode archive -target android -appid $(APPID) -o $(AAR) github.com/tailscale/tailscale-android/cmd/tailscale
$(DEBUG_APK): aar
(cd android && VERSION_LONG=$(VERSION_LONG) ./gradlew assembleDebug)
(cd android && VERSION=$(VERSION_LONG) ./gradlew assembleDebug)
mv android/build/outputs/apk/debug/android-debug.apk $@
$(RELEASE_AAB): aar

@ -26,7 +26,7 @@ android {
minSdkVersion 23
targetSdkVersion 29
versionCode 10
versionName System.getenv("VERSION_LONG")
versionName System.getenv("VERSION")
}
compileOptions {
sourceCompatibility 1.8

Loading…
Cancel
Save