From 751bda721ce0793bd43b30037040083bc162a054 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 21 Apr 2022 08:49:53 -0700 Subject: [PATCH] README.md: add some notes for developing on macOS --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 9c64887..860fa76 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,19 @@ adb shell am start -n com.tailscale.ipn/com.tailscale.ipn.IPNActivity adb shell pm uninstall com.tailscale.ipn ``` +## Building on macOS + +To build from the CLI on macOS: + +1. Install Android Studio +2. In Android Studio's home screen: "More Actions" > "SDK Manager", install NDK. +3. You can now close Android Studio, unless you want it to create virtual devices + ("More Actions" > "Virtual Device Manager"). +4. Then, from CLI: +5. `export JAVA_HOME='/Applications/Android Studio.app/Contents/jre/Contents/Home'` +6. `export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk` +7. `make tailscale-fdroid.apk`, etc + ## Bugs Please file any issues about this code or the hosted service on