chore(app): the phone build defaults to the Tailscale web proxy

This commit is contained in:
2026-10-23 20:00:30 +01:00
parent db7c33c7ab
commit 87529cd6f6
+5 -1
View File
@@ -9,12 +9,16 @@
# any server.
set -eu
notes="${1:-}"
# The phone's default server: the web proxy over Tailscale (sign in once in
# Settings). Override with PIPELINES_SERVER_URL.
server="${PIPELINES_SERVER_URL:-wss://alans-macbook-pro.tail6bf4dc.ts.net:8443/connect}"
FLUTTER="${FLUTTER:-/Users/alan/development/flutter/bin/flutter}"
export JAVA_HOME="${JAVA_HOME:-/Applications/Android Studio.app/Contents/jbr/Contents/Home}"
export ANDROID_HOME="${ANDROID_HOME:-$HOME/Library/Android/sdk}"
code=$(( $(date +%s) / 60 ))
name="0.1.$code"
"$FLUTTER" build apk --release --build-number="$code" --build-name="$name"
"$FLUTTER" build apk --release --build-number="$code" --build-name="$name" \
--dart-define=PIPELINES_SERVER_URL="$server"
mkdir -p build/updates
cp build/app/outputs/flutter-apk/app-release.apk build/updates/pipelines.apk
cat > build/updates/version.json <<JSON