schema: AutoUpdateMode must be None if UpdateCheckMode is not Tags or HTTP

This commit is contained in:
linsui 2023-10-30 17:29:04 +08:00
parent eb942788c5
commit 1c9fc125e2
5 changed files with 31 additions and 8 deletions

View file

@ -27,7 +27,7 @@ Builds:
MaintainerNotes: ' UpdateCheckMode disabled because checkupdates sets it to an old MaintainerNotes: ' UpdateCheckMode disabled because checkupdates sets it to an old
version' version'
AutoUpdateMode: Version release-%v AutoUpdateMode: None
UpdateCheckMode: None UpdateCheckMode: None
CurrentVersion: 0.6.0 CurrentVersion: 0.6.0
CurrentVersionCode: 6008 CurrentVersionCode: 6008

View file

@ -129,7 +129,7 @@ MaintainerNotes: |-
is needed for the OTA bundle, since that just includes this APK via a is needed for the OTA bundle, since that just includes this APK via a
script. script.
AutoUpdateMode: Version %v AutoUpdateMode: None
UpdateCheckMode: None UpdateCheckMode: None
CurrentVersion: 0.2.7 CurrentVersion: 0.2.7
CurrentVersionCode: 2070 CurrentVersionCode: 2070

View file

@ -178,7 +178,7 @@ Builds:
MaintainerNotes: UpdateCheckMode disabled because checkupdates sets it to an old version MaintainerNotes: UpdateCheckMode disabled because checkupdates sets it to an old version
AutoUpdateMode: Version v%v AutoUpdateMode: None
UpdateCheckMode: None UpdateCheckMode: None
CurrentVersion: 3.0.246 (beta) CurrentVersion: 3.0.246 (beta)
CurrentVersionCode: 246 CurrentVersionCode: 246

View file

@ -293,7 +293,7 @@ Builds:
gradle: gradle:
- yes - yes
AutoUpdateMode: Version v%v AutoUpdateMode: None
UpdateCheckMode: Static UpdateCheckMode: None
CurrentVersion: '0.28' CurrentVersion: '0.28'
CurrentVersionCode: 39 CurrentVersionCode: 39

View file

@ -674,9 +674,6 @@
}, },
"then": { "then": {
"properties": { "properties": {
"AutoUpdateMode": {
"const": "None"
},
"UpdateCheckMode": { "UpdateCheckMode": {
"const": "None" "const": "None"
} }
@ -729,6 +726,32 @@
} }
} }
} }
},
{
"if": {
"properties": {
"UpdateCheckMode": {
"anyOf": [
{
"enum": [
"None",
"Static"
]
},
{
"pattern": "^RepoManifest(/.+)?$"
}
]
}
}
},
"then": {
"properties": {
"AutoUpdateMode": {
"const": "None"
}
}
}
} }
], ],
"additionalProperties": false, "additionalProperties": false,