fdroid-docker-build/entrypoint
Adrian Malacoda 5d20e0585b Bake a selection of gradle versions into the image; use fdroid's gradle wrapper to determine which one to use.
Right now the image supports Gradle >= 3.0. This should be wide enough for the majority of use cases. If we need to add additional gradle versions we can easily do so.
2018-06-24 03:49:05 -05:00

13 lines
234 B
Bash

#!/bin/bash
REPO="$(pwd)"
export PATH="/opt/gradle/bin:$PATH"
if [ -d "fdroid" ]; then
cp -Rv fdroid/* /fdroiddata/metadata;
fi
cd /fdroiddata
find ./metadata -type f -name "*.txt" -exec sed -i "s:%REPO:$REPO:g" {} +
fdroid $@