Update F-Droid local build flow to capture APK outputs (#1405)

This commit is contained in:
Leendert de Borst
2025-11-27 08:03:47 +01:00
committed by Leendert de Borst
parent 4e0db87bc3
commit b5edc6ef76
3 changed files with 10 additions and 1 deletions

View File

@@ -14,6 +14,8 @@ services:
- ./net.aliasvault.app.yml:/net.aliasvault.app.yml
# Add build script to the container
- ./scripts/build.sh:/build.sh:Z
# Bind the outputs directory to capture APK build output
- ./outputs:/outputs:rw
# Increase memory limits for Gradle builds
shm_size: '2gb'
mem_limit: 12g

View File

@@ -2,6 +2,10 @@
set -e # Exit on any error, except where explicitly ignored
trap 'echo "🛑 Interrupted. Exiting..."; exit 130' INT # Handle Ctrl+C cleanly
# Create outputs bind dir and set correct permissions
mkdir -p outputs
sudo chown -R 1000:1000 outputs
# Build and run the Docker environment
echo "Building Docker images..."
if ! docker compose build; then

View File

@@ -23,4 +23,7 @@ fdroid fetchsrclibs net.aliasvault.app --verbose
# Format build receipe
fdroid rewritemeta net.aliasvault.app
# Build app and scan for any binary files that are prohibited
fdroid build --verbose --latest --scan-binary --on-server --no-tarball net.aliasvault.app
fdroid build --verbose --latest --scan-binary --on-server --no-tarball net.aliasvault.app
# Copy any outputs to the bind mount folder
rsync -avh /home/vagrant/build/build/net.aliasvault.app/apps/mobile-app/android/app/build/outputs/ /outputs/