gitlab-ci: set nightly build app name to "F-Nightly"

This commit is contained in:
Hans-Christoph Steiner 2017-12-06 16:29:51 +01:00
parent 91b67a9b39
commit 8b074e3a30
1 changed files with 5 additions and 0 deletions

View File

@ -89,10 +89,15 @@ deploy_nightly:
only:
- master
script:
- sed -i
's,<string name="app_name">.*</string>,<string name="app_name">F-Nightly</string>,'
app/src/main/res/values*/strings.xml
# add this nightly repo as a enabled repo
- sed -i -e '/<\/string-array>/d' -e '/<\/resources>/d' app/src/main/res/values/default_repos.xml
- echo "<item>${CI_PROJECT_PATH}-nightly</item>" >> app/src/main/res/values/default_repos.xml
- echo "<item>${CI_PROJECT_URL}-nightly/raw/master/fdroid/repo</item>" >> app/src/main/res/values/default_repos.xml
- cat config/nightly-repo/repo.xml >> app/src/main/res/values/default_repos.xml
# build the APKs!
- ./gradlew assembleDebug
- apt update; apt install -y --no-install-recommends fdroidserver python3-qrcode openssh-client
- fdroid nightly -v