Add automatic builds for lower android versions
This commit is contained in:
parent
17f87a9611
commit
4bb7346a3b
3 changed files with 30 additions and 8 deletions
16
scripts/compile_version.sh
Executable file
16
scripts/compile_version.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Edit the 'build.gradle' file to a certain target sdk
|
||||
TAG="$1"
|
||||
LABEL="$2"
|
||||
VERSION="$3"
|
||||
|
||||
echo "Setting $VERSION"
|
||||
# sed -i "s/compileSdkVersion *[0-9]\+/compileSdkVersion $VERSION/" app/build.gradle
|
||||
sed -i "s/minSdk *[0-9]\+/minSdk $VERSION/" app/build.gradle
|
||||
sed -i "s/targetSdkVersion *[0-9]\+/targetSdkVersion $VERSION/" app/build.gradle
|
||||
|
||||
./gradlew build
|
||||
|
||||
scp app/build/outputs/apk/release/app-release.apk hetzner:~/public/apk/mapcomplete-$TAG-$LABEL.apk
|
||||
ssh hetzner "cp ~/public/apk/mapcomplete-$TAG-$LABEL.apk ~/public/apk/mapcomplete-latest-$LABEL.apk"
|
||||
Loading…
Add table
Add a link
Reference in a new issue