Automatic update - don't pickup betas, version update

This commit is contained in:
Shilo 2022-02-11 23:36:38 +00:00 committed by linsui
parent 5f076264ee
commit da6cf2d4eb

View file

@ -194,7 +194,31 @@ Builds:
- sed -i -e '/-minimal/d' -e 's/\:\ "LOCAL"/\:\ "$$VERSION$$\"/' -e 's/\?\:\
1/\?\:\ $$VERCODE$$/' build.gradle.kts
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: 2021.12.1-minimal
CurrentVersionCode: 1818
- versionName: 2022.2.0-minimal
versionCode: 2052
commit: 2022.2.0
subdir: app
sudo:
- apt-get update || apt-get update
- apt-get install -y openjdk-11-jdk
- update-alternatives --auto java
gradle:
- minimal
rm:
- wear
prebuild:
- cp ../.github/mock-google-services.json google-services.json
- sed -i -e '/-minimal/d' -e 's/System.getenv("VERSION")/"$$VERSION$$"/' -e
's/System.getenv("VERSION_CODE")/"$$VERCODE$$"/' build.gradle.kts
- sed -i -e 's/, ":wear"//' ../settings.gradle.kts
MaintainerNotes: |-
6 versions, due to the rapid release there may be a trailing error
(which bothers only some users) and it takes time to fix.
ArchivePolicy: 6 versions
AutoUpdateMode: Version +-minimal %v
UpdateCheckMode: HTTP
UpdateCheckData: https://github.com/home-assistant/android/releases/latest/download/version_code.txt|(\d+)|https://github.com/home-assistant/android/releases/latest|tree/([\d.]+)"
CurrentVersion: 2022.2.0-minimal
CurrentVersionCode: 2052