summaryrefslogtreecommitdiff
path: root/makeRelease.sh
blob: 289e7fd425ad9f4db2e6834fa71997ce42ee7728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [ "$#" -ne 2 ]; then
    echo "Usage:\n  ./makeRelease 1.2.3rc0 Directory/"
    exit 1
fi

set -e
DEST=$2
VERSION_NAME=$1

rm CONTRIBUTORS
./createDevelopersList.py
./createTranslatorsList.py

./gradlew clean assemblePlayDebug assemblePlayRelease
cp app/build/outputs/apk/app-play-debug.apk $DEST/AntennaPod_${VERSION_NAME}_debug.apk
cp app/build/outputs/apk/app-play-release.apk $DEST/AntennaPod_${VERSION_NAME}_release.apk