Update release script for flavors
This commit is contained in:
parent
ca20b1e403
commit
df23789a14
|
@ -1,4 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$#" -ne 2 ]; then
|
||||||
|
echo "Usage:\n ./makeRelease 1.2.3rc0 Directory/"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
DEST=$2
|
DEST=$2
|
||||||
VERSION_NAME=$1
|
VERSION_NAME=$1
|
||||||
|
@ -6,6 +12,6 @@ VERSION_NAME=$1
|
||||||
# need to get rid of this so that it gets regenerated
|
# need to get rid of this so that it gets regenerated
|
||||||
# probably a way to solve this in Gradle too...
|
# probably a way to solve this in Gradle too...
|
||||||
rm -f app/src/main/assets/about.html
|
rm -f app/src/main/assets/about.html
|
||||||
./gradlew clean assembleDebug assembleRelease
|
./gradlew clean assemblePlayDebug assemblePlayRelease
|
||||||
cp app/build/outputs/apk/app-debug.apk $DEST/AntennaPod_${VERSION_NAME}_debug.apk
|
cp app/build/outputs/apk/app-play-debug.apk $DEST/AntennaPod_${VERSION_NAME}_debug.apk
|
||||||
cp app/build/outputs/apk/app-release.apk $DEST/AntennaPod_${VERSION_NAME}_release.apk
|
cp app/build/outputs/apk/app-play-release.apk $DEST/AntennaPod_${VERSION_NAME}_release.apk
|
||||||
|
|
Loading…
Reference in New Issue