mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-19 02:12:10 +08:00
fix(updater): detect stable releases from build metadata versions
This commit is contained in:
@@ -78,7 +78,11 @@ export const checkUpdateSafe = async (
|
||||
const remoteVersion = resolveRemoteVersion(result)
|
||||
const comparison = compareVersions(remoteVersion, localVersionNormalized)
|
||||
|
||||
if (comparison !== null && comparison <= 0) {
|
||||
const isBuildToStable =
|
||||
/^\d+\.\d+\.\d+\+[0-9A-Za-z.-]+$/.test(localVersionNormalized ?? '') &&
|
||||
remoteVersion === localVersionNormalized?.split('+')[0]
|
||||
|
||||
if (comparison !== null && comparison <= 0 && !isBuildToStable) {
|
||||
try {
|
||||
await result.close()
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user