From e296fa75c9a7bdf35017acb5eef71fc7d80b589f Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 18 Apr 2021 15:20:00 +0200 Subject: [PATCH] add a script for uploading to testrun.org --- scripts/upload-testrun.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/upload-testrun.sh diff --git a/scripts/upload-testrun.sh b/scripts/upload-testrun.sh new file mode 100755 index 000000000..17bb0c0b0 --- /dev/null +++ b/scripts/upload-testrun.sh @@ -0,0 +1,24 @@ + +VERSION=$1 + +if [ -z "$VERSION" ]; then + echo "this script uploads test apks testrun.org, both flavours:" + echo "- 🍋 gplay (overwrites gplay installs)" + echo "- 🍉 dev (can be installed beside gplay)" + echo "" + echo "usage: ./scripts/upload-testrun.sh " + exit +fi +if [[ ${VERSION:0:1} == "v" ]]; then + echo "VERSION must not begin with 'v' here." + exit +fi + +APKGPLAY="gplay/release/deltachat-gplay-release-$VERSION.apk" +APKDEV="build/outputs/apk/fat/debug/deltachat-fat-debug-$VERSION.apk" +ls -l $APKGPLAY +ls -l $APKDEV +read -p "upload these apks to testrun.org? ENTER to continue, CTRL-C to abort." + +scp $APKGPLAY root@testrun.org:/var/www/testrun.org/ +scp $APKDEV root@testrun.org:/var/www/testrun.org/