From 050f4a41d41f21a5ef3939ee5269bd32b22e865c Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 19 Dec 2021 20:17:47 -0800 Subject: [PATCH] Makefile: add fdroid-like APK target --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 709cc98..39089be 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,15 @@ $(DEBUG_APK): toolchain (cd android && ./gradlew assemblePlayDebug) mv android/build/outputs/apk/play/debug/android-play-debug.apk $@ +# tailscale-fdroid.apk builds a non-Google Play SDK, without the Google bits. +# This is effectively what the F-Droid build definition produces. +# This is useful for testing on e.g. Amazon Fire Stick devices. +tailscale-fdroid.apk: toolchain + mkdir -p android/libs + go run gioui.org/cmd/gogio -buildmode archive -target android -appid $(APPID) -o $(AAR) github.com/tailscale/tailscale-android/cmd/tailscale + (cd android && ./gradlew assembleFdroidDebug) + mv android/build/outputs/apk/fdroid/debug/android-fdroid-debug.apk $@ + # This target is also used by the F-Droid builder. release_aar: toolchain release_aar: