File size: 1,406 Bytes
0b2a88d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash

VERSION=$1

if [ -z "$VERSION" ]; then
    echo "this script uploads test apks to download.delta.chat/android/beta, both flavours:"
    echo "- ๐Ÿ‹ gplay (overwrites gplay installs)"
    echo "- ๐Ÿ‰ dev (can be installed beside gplay)"
    echo ""
    echo "usage: ./scripts/upload-beta.sh <VERSION>"
    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/foss/debug/deltachat-foss-debug-$VERSION.apk"
ls -l $APKGPLAY
ls -l $APKDEV
read -p "upload these apks to download.delta.chat/android/beta? ENTER to continue, CTRL-C to abort."

# see docs/upload-release for some hints wrt keys
rsync --progress $APKGPLAY jekyll@download.delta.chat:/var/www/html/download/android/beta/
rsync --progress $APKDEV jekyll@download.delta.chat:/var/www/html/download/android/beta/

echo "upload done."
echo ""
echo "and now: here is Delta Chat $VERSION - choose your flavour and mind your backups:"
echo "- ๐Ÿ‹ https://download.delta.chat/android/beta/deltachat-gplay-release-$VERSION.apk (google play candidate, overwrites existing installs, should keep data)"
echo "- ๐Ÿ‰ https://download.delta.chat/android/beta/deltachat-foss-debug-$VERSION.apk (f-droid candidate, can be installed beside google play)"
echo ""
echo "what to test: PLEASE_FILL_OUT"