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.
23 lines
429 B
23 lines
429 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 assembleGithub
|
|
|
|
find . -name '*.apk' -exec cp {} /apk \;
|
|
|