fix(updater): detect stable releases from build metadata versions

This commit is contained in:
Tunglies
2026-09-21 19:11:30 +08:00
parent 81ce247ecc
commit 8982525fd2
3 changed files with 26 additions and 8 deletions
+5 -1
View File
@@ -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) {