6136f589c1
* 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.
14 lines
No EOL
319 B
Bash
Executable file
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 |