mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 09:24:34 -05:00
Support for "STABLEPREVIEW" webUI version (#970)
Makes it possible to release new stable webUI versions without having to update the mapping file.
This commit is contained in:
@@ -597,16 +597,19 @@ object WebInterfaceManager {
|
||||
?: throw Exception("Invalid mappingFile")
|
||||
val minServerVersionNumber = extractVersion(minServerVersionString)
|
||||
|
||||
// is a STABLE webUI release, without a specified webUI version, which requires same handling as the PREVIEW release
|
||||
val isUnknownStableVersion = webUIVersion == "STABLEPREVIEW"
|
||||
|
||||
if (!WebUIChannel.doesConfigChannelEqual(WebUIChannel.from(webUIVersion))) {
|
||||
// allow only STABLE versions for STABLE channel
|
||||
if (WebUIChannel.doesConfigChannelEqual(WebUIChannel.STABLE)) {
|
||||
if (WebUIChannel.doesConfigChannelEqual(WebUIChannel.STABLE) && !isUnknownStableVersion) {
|
||||
continue
|
||||
}
|
||||
|
||||
// allow all versions for PREVIEW channel
|
||||
}
|
||||
|
||||
if (webUIVersion == WebUIChannel.PREVIEW.name) {
|
||||
if (webUIVersion == WebUIChannel.PREVIEW.name || isUnknownStableVersion) {
|
||||
webUIVersion = fetchPreviewVersion(flavor)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user