From a5b40b29f8193a9bd000c78d904dc0a3d28d4fa6 Mon Sep 17 00:00:00 2001 From: linsui Date: Sat, 29 Oct 2022 15:22:15 +0800 Subject: [PATCH] Change VercodeOperation to list --- metadata/com.greenaddress.greenbits_android_wallet.yml | 3 ++- metadata/com.junkfood.seal.yml | 5 +++++ metadata/com.kanedias.archforums.yml | 3 ++- metadata/com.kanedias.holywarsoo.yml | 3 ++- metadata/com.opendoorstudios.ds4droid.yml | 3 ++- metadata/com.standardnotes.yml | 3 ++- metadata/de.bitsharesmunich.wallet.yml | 3 ++- metadata/eu.sum7.conversations.yml | 3 ++- metadata/io.lbry.browser.yml | 3 ++- metadata/io.nekohasekai.anXray.yml | 3 ++- metadata/io.nekohasekai.sagernet.plugin.brook.yml | 3 ++- metadata/io.nekohasekai.sagernet.plugin.hysteria.yml | 3 ++- metadata/io.nekohasekai.sagernet.plugin.mieru.yml | 3 ++- metadata/io.nekohasekai.sagernet.plugin.naive.yml | 3 ++- metadata/io.nekohasekai.sagernet.plugin.trojan_go.yml | 3 ++- metadata/io.nekohasekai.sagernet.plugin.tuic.yml | 3 ++- metadata/io.nekohasekai.sagernet.yml | 3 ++- metadata/moe.matsuri.lite.yml | 3 ++- metadata/net.ebt.muzei.miyazaki.yml | 3 ++- metadata/network.loki.messenger.fdroid.yml | 3 ++- metadata/org.calyxinstitute.vpn.yml | 3 ++- metadata/org.geometerplus.zlibrary.ui.android.yml | 3 ++- metadata/org.libreoffice.impressremote.yml | 3 ++- metadata/org.ppsspp.ppsspp.yml | 3 ++- metadata/org.runnerup.free.yml | 3 ++- metadata/org.sufficientlysecure.viewer.yml | 3 ++- metadata/org.videolan.vlc.yml | 3 ++- metadata/pan.alexander.tordnscrypt.stable.yml | 3 ++- metadata/paulscode.android.mupen64plusae.yml | 3 ++- schemas/metadata.json | 9 +++++++-- 30 files changed, 68 insertions(+), 30 deletions(-) diff --git a/metadata/com.greenaddress.greenbits_android_wallet.yml b/metadata/com.greenaddress.greenbits_android_wallet.yml index ff61d4e7e1..9502052ae6 100644 --- a/metadata/com.greenaddress.greenbits_android_wallet.yml +++ b/metadata/com.greenaddress.greenbits_android_wallet.yml @@ -2299,6 +2299,7 @@ MaintainerNotes: |- AutoUpdateMode: Version UpdateCheckMode: Tags -VercodeOperation: 22000000 + %c +VercodeOperation: + - 22000000 + %c CurrentVersion: 3.8.9 CurrentVersionCode: 22000389 diff --git a/metadata/com.junkfood.seal.yml b/metadata/com.junkfood.seal.yml index 30dcaeaa29..44a8e9a537 100644 --- a/metadata/com.junkfood.seal.yml +++ b/metadata/com.junkfood.seal.yml @@ -281,6 +281,11 @@ Builds: AutoUpdateMode: Version +-(F-Droid) %v UpdateCheckMode: Tags ^v[0-9.]+$ +VercodeOperation: + - 1+%c + - 2+%c + - 3+%c + - 4+%c UpdateCheckData: app/build.gradle.kts|versionCode\s=\s(\d+)||v(.*) CurrentVersion: 1.4.0 CurrentVersionCode: 10404 diff --git a/metadata/com.kanedias.archforums.yml b/metadata/com.kanedias.archforums.yml index b28a88b64f..5c2a04c663 100644 --- a/metadata/com.kanedias.archforums.yml +++ b/metadata/com.kanedias.archforums.yml @@ -66,6 +66,7 @@ MaintainerNotes: |- AutoUpdateMode: Version UpdateCheckMode: Tags -VercodeOperation: '%c*10000' +VercodeOperation: + - '%c*10000' CurrentVersion: 1.2.8 CurrentVersionCode: 160000 diff --git a/metadata/com.kanedias.holywarsoo.yml b/metadata/com.kanedias.holywarsoo.yml index b77480bdf9..ba4f0b3d08 100644 --- a/metadata/com.kanedias.holywarsoo.yml +++ b/metadata/com.kanedias.holywarsoo.yml @@ -207,6 +207,7 @@ MaintainerNotes: |- AutoUpdateMode: Version UpdateCheckMode: Tags -VercodeOperation: '%c*10000' +VercodeOperation: + - '%c*10000' CurrentVersion: 1.6.0 CurrentVersionCode: 310000 diff --git a/metadata/com.opendoorstudios.ds4droid.yml b/metadata/com.opendoorstudios.ds4droid.yml index e6db891a1b..4e90bfeb92 100644 --- a/metadata/com.opendoorstudios.ds4droid.yml +++ b/metadata/com.opendoorstudios.ds4droid.yml @@ -280,6 +280,7 @@ MaintainerNotes: |- ArchivePolicy: 6 versions AutoUpdateMode: None UpdateCheckMode: None -VercodeOperation: '%c*10 + 3' +VercodeOperation: + - '%c*10 + 3' CurrentVersion: '46' CurrentVersionCode: 463 diff --git a/metadata/com.standardnotes.yml b/metadata/com.standardnotes.yml index 04b4a417f1..d44c7e3558 100644 --- a/metadata/com.standardnotes.yml +++ b/metadata/com.standardnotes.yml @@ -7999,7 +7999,8 @@ Builds: AutoUpdateMode: Version @standardnotes/mobile@%v UpdateCheckMode: HTTP -VercodeOperation: 3000310 + %c +VercodeOperation: + - 3000310 + %c UpdateCheckData: https://github.com/standardnotes/app/actions/workflows/mobile.release.prod.yml|(\d+)\sworkflow\sruns|https://github.com/standardnotes/app/releases|/releases/tag/%40standardnotes%2Fmobile%40([\d.]+) CurrentVersion: 3.45.1 CurrentVersionCode: 3000595 diff --git a/metadata/de.bitsharesmunich.wallet.yml b/metadata/de.bitsharesmunich.wallet.yml index 7a2218f77d..fc425ca018 100644 --- a/metadata/de.bitsharesmunich.wallet.yml +++ b/metadata/de.bitsharesmunich.wallet.yml @@ -101,6 +101,7 @@ Builds: AutoUpdateMode: None UpdateCheckMode: None -VercodeOperation: '%c*10 + 8' +VercodeOperation: + - '%c*10 + 8' CurrentVersion: 1.0.2 CurrentVersionCode: 100028 diff --git a/metadata/eu.sum7.conversations.yml b/metadata/eu.sum7.conversations.yml index f8f04860b7..d5206bf6a9 100644 --- a/metadata/eu.sum7.conversations.yml +++ b/metadata/eu.sum7.conversations.yml @@ -642,6 +642,7 @@ MaintainerNotes: |- ArchivePolicy: 0 versions AutoUpdateMode: None UpdateCheckMode: None -VercodeOperation: 100*%c +VercodeOperation: + - 100*%c CurrentVersion: 2.10.2 CurrentVersionCode: 420230100 diff --git a/metadata/io.lbry.browser.yml b/metadata/io.lbry.browser.yml index 3cd86e891f..5ebae8ba36 100644 --- a/metadata/io.lbry.browser.yml +++ b/metadata/io.lbry.browser.yml @@ -261,6 +261,7 @@ MaintainerNotes: |- AutoUpdateMode: Version v%v-fdroid UpdateCheckMode: Tags v\d+.\d+.\d+[a-z]?-fdroid -VercodeOperation: '%c*10 + 1' +VercodeOperation: + - '%c*10 + 1' CurrentVersion: 0.17.1 CurrentVersionCode: 17011 diff --git a/metadata/io.nekohasekai.anXray.yml b/metadata/io.nekohasekai.anXray.yml index 54c89fd5fb..e118dcc637 100644 --- a/metadata/io.nekohasekai.anXray.yml +++ b/metadata/io.nekohasekai.anXray.yml @@ -49,7 +49,8 @@ Builds: AutoUpdateMode: None UpdateCheckMode: None -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|VERSION_CODE=(\d+)|| CurrentVersion: 0.4-rc06 CurrentVersionCode: 175 diff --git a/metadata/io.nekohasekai.sagernet.plugin.brook.yml b/metadata/io.nekohasekai.sagernet.plugin.brook.yml index 51f9393f0d..9881d0fdde 100644 --- a/metadata/io.nekohasekai.sagernet.plugin.brook.yml +++ b/metadata/io.nekohasekai.sagernet.plugin.brook.yml @@ -99,7 +99,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^brook-plugin-.* -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|BROOK_VERSION=(\d+)|.|BROOK_VERSION_NAME=(.*) CurrentVersion: '20220406' CurrentVersionCode: 20 diff --git a/metadata/io.nekohasekai.sagernet.plugin.hysteria.yml b/metadata/io.nekohasekai.sagernet.plugin.hysteria.yml index e54ab71ef6..0b014aadd8 100644 --- a/metadata/io.nekohasekai.sagernet.plugin.hysteria.yml +++ b/metadata/io.nekohasekai.sagernet.plugin.hysteria.yml @@ -178,7 +178,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^hysteria-plugin-.* -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|HYSTERIA_VERSION=(\d+)|.|HYSTERIA_VERSION_NAME=(.*) CurrentVersion: 1.2.1 CurrentVersionCode: 90 diff --git a/metadata/io.nekohasekai.sagernet.plugin.mieru.yml b/metadata/io.nekohasekai.sagernet.plugin.mieru.yml index f3a4b5d908..e7d988b563 100644 --- a/metadata/io.nekohasekai.sagernet.plugin.mieru.yml +++ b/metadata/io.nekohasekai.sagernet.plugin.mieru.yml @@ -70,7 +70,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^mieru-plugin-.* -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|MIERU_VERSION=(\d+)|.|MIERU_VERSION_NAME=(.*) CurrentVersion: 1.8.0 CurrentVersionCode: 30 diff --git a/metadata/io.nekohasekai.sagernet.plugin.naive.yml b/metadata/io.nekohasekai.sagernet.plugin.naive.yml index b91415dec9..a32ba44627 100644 --- a/metadata/io.nekohasekai.sagernet.plugin.naive.yml +++ b/metadata/io.nekohasekai.sagernet.plugin.naive.yml @@ -257,7 +257,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^naive-plugin-.* -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|NAIVE_VERSION=(\d+)|.|NAIVE_VERSION_NAME=(.*) CurrentVersion: 106.0.5249.91-1 CurrentVersionCode: 100 diff --git a/metadata/io.nekohasekai.sagernet.plugin.trojan_go.yml b/metadata/io.nekohasekai.sagernet.plugin.trojan_go.yml index f7cad778a1..b204dbe875 100644 --- a/metadata/io.nekohasekai.sagernet.plugin.trojan_go.yml +++ b/metadata/io.nekohasekai.sagernet.plugin.trojan_go.yml @@ -124,7 +124,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^trojan-go-plugin-.* -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|TROJAN_GO_VERSION=(\d+)|.|TROJAN_GO_VERSION_NAME=(.*) CurrentVersion: 0.10.6 CurrentVersionCode: 25 diff --git a/metadata/io.nekohasekai.sagernet.plugin.tuic.yml b/metadata/io.nekohasekai.sagernet.plugin.tuic.yml index 5dc4024653..8948d731b0 100644 --- a/metadata/io.nekohasekai.sagernet.plugin.tuic.yml +++ b/metadata/io.nekohasekai.sagernet.plugin.tuic.yml @@ -67,7 +67,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^tuic-plugin-.* -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|TUIC_VERSION=(\d+)|.|TUIC_VERSION_NAME=(.*) CurrentVersion: 0.8.5 CurrentVersionCode: 25 diff --git a/metadata/io.nekohasekai.sagernet.yml b/metadata/io.nekohasekai.sagernet.yml index 0088272173..abc811569b 100644 --- a/metadata/io.nekohasekai.sagernet.yml +++ b/metadata/io.nekohasekai.sagernet.yml @@ -1089,7 +1089,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^\d.* -VercodeOperation: 459 + %c * 2 +VercodeOperation: + - 459 + %c * 2 UpdateCheckData: sager.properties|VERSION_CODE=(\d+)|| CurrentVersion: 0.8.1-rc02 CurrentVersionCode: 811 diff --git a/metadata/moe.matsuri.lite.yml b/metadata/moe.matsuri.lite.yml index 9426eb7409..c1da232247 100644 --- a/metadata/moe.matsuri.lite.yml +++ b/metadata/moe.matsuri.lite.yml @@ -382,7 +382,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags -VercodeOperation: '%c * 5' +VercodeOperation: + - '%c * 5' UpdateCheckData: sager.properties|VERSION_CODE=(\d+)|.|VERSION_NAME=(.*) CurrentVersion: 0.5.1 CurrentVersionCode: 810 diff --git a/metadata/net.ebt.muzei.miyazaki.yml b/metadata/net.ebt.muzei.miyazaki.yml index 3641c1eff0..4c11cdf3cd 100644 --- a/metadata/net.ebt.muzei.miyazaki.yml +++ b/metadata/net.ebt.muzei.miyazaki.yml @@ -70,6 +70,7 @@ MaintainerNotes: |- AutoUpdateMode: Version %v UpdateCheckMode: Tags -VercodeOperation: '%c - 1' +VercodeOperation: + - '%c - 1' CurrentVersion: '3.2' CurrentVersionCode: 320 diff --git a/metadata/network.loki.messenger.fdroid.yml b/metadata/network.loki.messenger.fdroid.yml index ac54babf80..a840099ac2 100644 --- a/metadata/network.loki.messenger.fdroid.yml +++ b/metadata/network.loki.messenger.fdroid.yml @@ -462,7 +462,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags -VercodeOperation: 10*%c+5 +VercodeOperation: + - 10*%c+5 UpdateCheckData: app/build.gradle|canonicalVersionCode\s=\s(\d+)|.|canonicalVersionName\s=\s"([\d.]+)" CurrentVersion: 1.16.1 CurrentVersionCode: 3105 diff --git a/metadata/org.calyxinstitute.vpn.yml b/metadata/org.calyxinstitute.vpn.yml index e892176c3d..be4aafa5c5 100644 --- a/metadata/org.calyxinstitute.vpn.yml +++ b/metadata/org.calyxinstitute.vpn.yml @@ -201,7 +201,8 @@ MaintainerNotes: The "build" commands are extracted from build_deps.sh. AutoUpdateMode: Version UpdateCheckMode: Tags ^calyx\/[0-9.]+$ -VercodeOperation: 1000*%c +VercodeOperation: + - 1000*%c UpdateCheckName: se.leap.bitmaskclient CurrentVersion: 1.1.2 CurrentVersionCode: 160000 diff --git a/metadata/org.geometerplus.zlibrary.ui.android.yml b/metadata/org.geometerplus.zlibrary.ui.android.yml index f9c4f0f238..7da76f49ba 100644 --- a/metadata/org.geometerplus.zlibrary.ui.android.yml +++ b/metadata/org.geometerplus.zlibrary.ui.android.yml @@ -578,6 +578,7 @@ MaintainerNotes: |- ArchivePolicy: 6 versions AutoUpdateMode: None UpdateCheckMode: Tags ^[0-9.]*$ -VercodeOperation: '%c + 10' +VercodeOperation: + - '%c + 10' CurrentVersion: 2.5.9 CurrentVersionCode: 2050920 diff --git a/metadata/org.libreoffice.impressremote.yml b/metadata/org.libreoffice.impressremote.yml index 7a51919f8f..e94144308d 100644 --- a/metadata/org.libreoffice.impressremote.yml +++ b/metadata/org.libreoffice.impressremote.yml @@ -100,6 +100,7 @@ MaintainerNotes: |- AutoUpdateMode: Version sdremote-%v UpdateCheckMode: Tags -VercodeOperation: '%c - 1' +VercodeOperation: + - '%c - 1' CurrentVersion: 2.5.2 CurrentVersionCode: 26 diff --git a/metadata/org.ppsspp.ppsspp.yml b/metadata/org.ppsspp.ppsspp.yml index 5a96085c33..39c2a63288 100644 --- a/metadata/org.ppsspp.ppsspp.yml +++ b/metadata/org.ppsspp.ppsspp.yml @@ -544,6 +544,7 @@ Builds: AutoUpdateMode: None UpdateCheckMode: Tags -VercodeOperation: '%c*10' +VercodeOperation: + - '%c*10' CurrentVersion: 1.13.2.0 CurrentVersionCode: 1130200000 diff --git a/metadata/org.runnerup.free.yml b/metadata/org.runnerup.free.yml index b0f95462f0..1ad89d5669 100644 --- a/metadata/org.runnerup.free.yml +++ b/metadata/org.runnerup.free.yml @@ -353,6 +353,7 @@ MaintainerNotes: This replaces RunnerUp 1.x https://f-droid.org/packages/org.run AutoUpdateMode: Version UpdateCheckMode: Tags ^v[0-9.]*$ -VercodeOperation: '%c + 15000000' +VercodeOperation: + - '%c + 15000000' CurrentVersion: 2.4.5.0 CurrentVersionCode: 15000312 diff --git a/metadata/org.sufficientlysecure.viewer.yml b/metadata/org.sufficientlysecure.viewer.yml index bf9298b8fd..06b2603ce0 100644 --- a/metadata/org.sufficientlysecure.viewer.yml +++ b/metadata/org.sufficientlysecure.viewer.yml @@ -1753,6 +1753,7 @@ MaintainerNotes: |- ArchivePolicy: 15 versions AutoUpdateMode: None UpdateCheckMode: None -VercodeOperation: '%c + 7' +VercodeOperation: + - '%c + 7' CurrentVersion: 2.8.2 CurrentVersionCode: 2827 diff --git a/metadata/org.videolan.vlc.yml b/metadata/org.videolan.vlc.yml index 5b405ea8a6..c89ebf3247 100644 --- a/metadata/org.videolan.vlc.yml +++ b/metadata/org.videolan.vlc.yml @@ -5047,7 +5047,8 @@ MaintainerNotes: |- ArchivePolicy: 12 versions AutoUpdateMode: None UpdateCheckMode: Tags ^[\d.]+$ -VercodeOperation: 10000008+%c +VercodeOperation: + - 10000008+%c UpdateCheckData: build.gradle|versionCode\s=\s(\d+)|.|versionName\s=\s'(.*)' CurrentVersion: 3.5.2 CurrentVersionCode: 13050208 diff --git a/metadata/pan.alexander.tordnscrypt.stable.yml b/metadata/pan.alexander.tordnscrypt.stable.yml index d1cb30d303..2a77b584d5 100644 --- a/metadata/pan.alexander.tordnscrypt.stable.yml +++ b/metadata/pan.alexander.tordnscrypt.stable.yml @@ -270,7 +270,8 @@ Builds: AutoUpdateMode: Version UpdateCheckMode: Tags ^v.*-stable$ -VercodeOperation: 2000 + %c +VercodeOperation: + - 2000 + %c UpdateCheckData: tordnscrypt/build.gradle|versionCode\s(\d+)|.|versionName\s"([\d.]+)" CurrentVersion: 5.9.0 CurrentVersionCode: 2175 diff --git a/metadata/paulscode.android.mupen64plusae.yml b/metadata/paulscode.android.mupen64plusae.yml index a87dab2327..e82e003f0e 100644 --- a/metadata/paulscode.android.mupen64plusae.yml +++ b/metadata/paulscode.android.mupen64plusae.yml @@ -94,6 +94,7 @@ MaintainerNotes: |- ArchivePolicy: 0 versions AutoUpdateMode: None UpdateCheckMode: None -VercodeOperation: '%c*10 + 3' +VercodeOperation: + - '%c*10 + 3' CurrentVersion: 2.4.4 CurrentVersionCode: 363 diff --git a/schemas/metadata.json b/schemas/metadata.json index 397dd8d6de..9ac0d63e30 100644 --- a/schemas/metadata.json +++ b/schemas/metadata.json @@ -607,8 +607,13 @@ ] }, "VercodeOperation": { - "description": "Operation to be applied to the vercode obtained by the defined UpdateCheckMode. %c will be replaced by the actual vercode, and the whole string will be passed to python’s eval function.", - "type": "string" + "description": "A list of operations to be applied to the vercode obtained by the defined UpdateCheckMode. %c will be replaced by the actual vercode, and each string will be passed to python’s eval function to calculate a version code.", + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "minItems": 1 }, "UpdateCheckIgnore": { "description": "When checking for updates (via UpdateCheckMode) this can be used to specify a regex which, if matched against the version name, causes that version to be ignored.",