Files
arnef 1983598e38 Add Docker-based Android APK build tooling
Multi-stage Dockerfile.android (Bun + Android SDK + Gradle) built via
build-apk.sh, so the APK can be built reproducibly without a local
Android SDK install.
2026-08-12 11:54:39 +02:00

24 lines
501 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
set -e
if command -v podman > /dev/null 2>&1; then
DOCKER=podman
elif command -v docker > /dev/null 2>&1; then
DOCKER=docker
else
echo "Fehler: weder podman noch docker gefunden." >&2
exit 1
fi
OUT="$(pwd)/apk-output"
mkdir -p "$OUT"
# Immer ohne Cache bauen verhindert dass alte Schichten das Ergebnis verfälschen
$DOCKER build --no-cache \
-f Dockerfile.android \
--output "type=local,dest=$OUT" \
.
echo ""
echo "✓ APK bereit: $OUT/tiptoi-sync.apk"