You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
fairemail-apk/entrypoint.sh

23 lines
466 B

#!/bin/sh
set -eu
VERSION=$1
KEYSTORE_FILE=$2
KEYSTORE_PROPERTIES=$3
curl -OL https://github.com/M66B/FairEmail/archive/$VERSION.tar.gz
tar xvzf $VERSION.tar.gz
cd FairEmail-$VERSION
echo $KEYSTORE_FILE | base64 -d > keystore.jks
echo $KEYSTORE_PROPERTIES | base64 -d > keystore.properties
for patch in /patches/*; do
patch -p0 < $patch
done
gradle --no-daemon assemble
cp app/build/outputs/apk/github/release/FairEmail-v$VERSION-github-release.apk /apk