mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
add a script to upload apk+symbols to get.delta.chat
This commit is contained in:
parent
728baf41f3
commit
456576405f
3 changed files with 39 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -27,6 +27,9 @@ test/androidTestEspresso/res/values/arrays.xml
|
|||
obj/
|
||||
jni/libspeex/.deps/
|
||||
|
||||
# ignore debug symbols created by ./tools/upload-release.sh
|
||||
*-symbols.zip
|
||||
|
||||
# ignore private scripts and directories, eg. local2github.prv.sh
|
||||
*.prv*
|
||||
|
||||
|
|
|
@ -37,14 +37,7 @@ on success, the generated APK is at
|
|||
|
||||
# Upload APK to get.delta.chat
|
||||
|
||||
7. $ cd gplay/release
|
||||
$ rsync deltachat-gplay-release-VERSION.apk jekyll@download.delta.chat:/var/www/html/download/android/
|
||||
(you need the private SSH key of the jekyll user; you can find it in this file:
|
||||
https://github.com/hpk42/otf-deltachat/blob/master/secrets/delta.chat
|
||||
It is protected with [git-crypt](https://www.agwa.name/projects/git-crypt/) -
|
||||
after installing it, you can decrypt it with `git crypt unlock`.
|
||||
If your key isn't added to the secrets, you can ask on irc add you.
|
||||
Add the key to your `~/.ssh/config` for the host, or to your ssh-agent, so rsync is able to use it)
|
||||
7. $ ./tools/upload-release.sh VERSION
|
||||
|
||||
8. a) Test the APK yourself.
|
||||
The "Testing checklist" gives some hints.
|
||||
|
|
35
tools/upload-release.sh
Executable file
35
tools/upload-release.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
|
||||
VERSION=$1
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "this script uploads apk and symbols to get.delta.chat"
|
||||
echo "the script does not upload things to gplay or other stores."
|
||||
echo ""
|
||||
echo "usage: ./tools/upload-release.sh <VERSION>"
|
||||
exit
|
||||
fi
|
||||
if [[ ${VERSION:0:1} == "v" ]]; then
|
||||
echo "VERSION must not begin with 'v' here."
|
||||
exit
|
||||
fi
|
||||
|
||||
cd gplay/release
|
||||
APK="deltachat-gplay-release-$VERSION.apk"
|
||||
ls -l $APK
|
||||
read -p "upload this apk and belonging symbols to get.delta.chat? ENTER to continue, CTRL-C to abort."
|
||||
|
||||
# you need the private SSH key of the jekyll user; you can find it in this file:
|
||||
# https://github.com/hpk42/otf-deltachat/blob/master/secrets/delta.chat
|
||||
# It is protected with [git-crypt](https://www.agwa.name/projects/git-crypt/) -
|
||||
# after installing it, you can decrypt it with `git crypt unlock`.
|
||||
# If your key isn't added to the secrets, and you know some of the team in person,
|
||||
# you can ask on irc #deltachat for access.
|
||||
# Add the key to your `~/.ssh/config` for the host, or to your ssh-agent, so rsync is able to use it)
|
||||
rsync --progress $APK jekyll@download.delta.chat:/var/www/html/download/android/
|
||||
|
||||
cd ../..
|
||||
SYMBOLS_ZIP="$APK-symbols.zip"
|
||||
rm $SYMBOLS_ZIP
|
||||
zip -r $SYMBOLS_ZIP obj
|
||||
ls -l $SYMBOLS_ZIP
|
||||
rsync --progress $SYMBOLS_ZIP jekyll@download.delta.chat:/var/www/html/download/android/
|
Loading…
Add table
Add a link
Reference in a new issue