The existing build-tauri-android.sh holds an SSH connection open for
the entire Docker build (~10 min). Running it in the background kills
it when the SSH keepalive times out (~60s of silence during compile).
New script:
- uploads the build script to remote and launches it in a detached
tmux session so it survives SSH disconnects
- exits immediately (fire-and-forget); build result arrives via ntfy
- --wait flag blocks + downloads APK when done (same as old script)
- same flags as the original: --init, --rust, --no-pull, --debug
Usage:
./scripts/android-build-async.sh # fire and forget
./scripts/android-build-async.sh --wait # block until APK downloaded
./scripts/android-build-async.sh --init --wait
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>