From 415eb3cb7067899ad81df69ef6d5523d183ad1ae Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Wed, 9 Jun 2021 08:39:24 +0200 Subject: [PATCH] Use git tag in UpdateCheckData --- metadata/apps.amine.bou.readerforselfoss.yml | 12 +++++------- metadata/design.codeux.authpass.fdroid.yml | 6 +++--- metadata/eu.faircode.email.yml | 7 +++---- metadata/tk.radioactivemineral.metronome.yml | 5 +++-- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/metadata/apps.amine.bou.readerforselfoss.yml b/metadata/apps.amine.bou.readerforselfoss.yml index 00875a2544..ccd1297a5b 100644 --- a/metadata/apps.amine.bou.readerforselfoss.yml +++ b/metadata/apps.amine.bou.readerforselfoss.yml @@ -452,13 +452,11 @@ Builds: - appLoginUsername="LOGIN" - appLoginPassword="PASS" -MaintainerNotes: |- - Version code and name are dynamically generated from the Git tag. +MaintainerNotes: The Gradle properties are added to avoid a Gradle error but they + are only used in test builds. - The Gradle properties are added to avoid a Gradle error but they are only used in test builds. - -AutoUpdateMode: Version v%c -UpdateCheckMode: HTTP -UpdateCheckData: https://www.amine-bou.fr/version.txt|versionCode=(.*)|.|versionName=(.*) +AutoUpdateMode: Version +UpdateCheckMode: Tags +UpdateCheckData: '|v(\d+)||v(\d+)' CurrentVersion: 1721030811-github CurrentVersionCode: 1721030811 diff --git a/metadata/design.codeux.authpass.fdroid.yml b/metadata/design.codeux.authpass.fdroid.yml index 95c2646f13..ac923ef074 100644 --- a/metadata/design.codeux.authpass.fdroid.yml +++ b/metadata/design.codeux.authpass.fdroid.yml @@ -373,8 +373,8 @@ Builds: - tmp/flutter/bin/flutter build apk -t lib/env/fdroid.dart --flavor fdroid --release ndk: r21d -AutoUpdateMode: Version fdroid-v%v -UpdateCheckMode: HTTP -UpdateCheckData: https://data.authpass.app/data/fdroid-version.txt|versionCode=(.*)|.|versionName=(.*) +AutoUpdateMode: Version +UpdateCheckMode: Tags ^fdroid-v[0-9.]+$ +UpdateCheckData: authpass/pubspec.yaml|version:\s.+\+(\d+)|.|version:\s(.+)\+ CurrentVersion: 1.7.11 CurrentVersionCode: 150 diff --git a/metadata/eu.faircode.email.yml b/metadata/eu.faircode.email.yml index 1fc604ffbd..e7781be0ff 100644 --- a/metadata/eu.faircode.email.yml +++ b/metadata/eu.faircode.email.yml @@ -4248,9 +4248,8 @@ Builds: prebuild: sed -i -e '/keystoreProperties/d' build.gradle ndk: r21e -AutoUpdateMode: Version %v -UpdateCheckMode: HTTP -UpdateCheckData: https://raw.githubusercontent.com/M66B/FairEmail/master/app/build.gradle|return - (\d+)|https://github.com/M66B/FairEmail/releases/latest|tree/([\d.]+) +AutoUpdateMode: Version +UpdateCheckMode: Tags +UpdateCheckData: app/build.gradle|getVersionCode.*return (\d+)|| CurrentVersion: '1.1608' CurrentVersionCode: 1609 diff --git a/metadata/tk.radioactivemineral.metronome.yml b/metadata/tk.radioactivemineral.metronome.yml index 0d054fca63..60a9f67bc4 100644 --- a/metadata/tk.radioactivemineral.metronome.yml +++ b/metadata/tk.radioactivemineral.metronome.yml @@ -33,7 +33,8 @@ Builds: gradle: - yes -AutoUpdateMode: None -UpdateCheckMode: RepoManifest +AutoUpdateMode: Version +UpdateCheckMode: Tags ^v[0-9.]*$ +UpdateCheckData: app/build.gradle|versionCode\s(\d+)|| CurrentVersion: Polonium CurrentVersionCode: 8