fix: ensure stable version check is correctly implemented in update process

This commit is contained in:
troyeguo
2026-05-01 17:29:38 +08:00
parent b3f4c5f530
commit dc0f988d2f

View File

@@ -47,6 +47,7 @@ class UpdateInfo extends React.Component<UpdateInfoProps, UpdateInfoState> {
res = await checkDeveloperUpdate();
}
const newVersion = res.version;
const stableVersion = res.stable_version || "1.0.0";
await sleep(500);
if (
res.stable === "no" &&
@@ -57,6 +58,9 @@ class UpdateInfo extends React.Component<UpdateInfoProps, UpdateInfoState> {
if ((process as any).windowsStore) {
return;
}
if (stableVersion === packageInfo.version) {
return;
}
if (compareVersions(newVersion, packageInfo.version) > 0) {
if (
ConfigService.getReaderConfig("isDisableUpdate") !== "yes" ||