build: add script to build android locally (#31)
Build Mumble Web 2 / windows_build (push) Failing after 31s
Build Mumble Web 2 / macos_build (push) Failing after 32s
Build Mumble Web 2 / linux_build (push) Failing after 30s
Build Mumble Web 2 / android_build (push) Failing after 28s

This change adds a shell script to make building the android APK locally a lot easier.

Reviewed-on: #31
Reviewed-by: Sam Sartor <cap@samsartor.com>
This commit was merged in pull request #31.
This commit is contained in:
2026-05-05 04:14:33 +00:00
parent 3a9bb60605
commit 63ce666fa7
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
IMAGE_NAME="mumble-web2/android-release-builder:local"
TARGET="${1:-aarch64-linux-android}"
echo "==> Building Android builder Docker image..."
docker build -t "$IMAGE_NAME" -f "$SCRIPT_DIR/android-release-builder.Dockerfile" "$PROJECT_ROOT"
echo "==> Building Android APK (target: $TARGET)..."
docker run --rm \
-v "$PROJECT_ROOT:/app" \
-w /app \
"$IMAGE_NAME" \
dx build --platform android --target "$TARGET" --release -p mumble-web2-gui
echo "==> Done! APK should be at:"
echo " target/dx/mumble-web2-gui/release/android/app/app/build/outputs/apk/debug/app-debug.apk"