seedvault/download.sh
Chirayu Desai 6136f589c1 Android.mk: Download prebuilt apk instead of building it
* With the upcoming changes, and the increasing number of external
  libraries being used, plus the usage of Kotlin, it's getting harder
  and harder to build this with the AOSP build system.
* It's best to leverage the existing gradle build system instead,
  and use the apk that builds.
* Add a script which downloads the apk matching the tag if a tag is
  checked out, otherwise downloads the latest.
2019-07-31 23:22:35 +05:30

14 lines
No EOL
319 B
Bash
Executable file

#!/bin/bash
#
# Script to download apk from github releases
BASE_URL="https://github.com/stevesoltys/backup/releases"
APK="app-release-unsigned.apk"
VERSION="latest/download"
TAG=$(git tag -l --points-at HEAD)
if [ ! -z ${TAG} ]; then
VERSION="download/${TAG}"
fi
curl -L ${BASE_URL}/${VERSION}/${APK} > Backup.apk