mirror of
https://github.com/aliasvault/aliasvault.git
synced 2025-12-23 22:28:22 -05:00
Update F-Droid local build flow to capture APK outputs (#1405)
This commit is contained in:
committed by
Leendert de Borst
parent
4e0db87bc3
commit
b5edc6ef76
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user