mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-22 12:33:05 +08:00
[fix] use numeric versions for desktop branch builds
This commit is contained in:
@@ -54,6 +54,15 @@ bool UpdateChecker::Poll(TimePoint now) {
|
||||
ScheduleRetry(now);
|
||||
return true;
|
||||
}
|
||||
// Branch names followed by a date are not application versions. Comparing
|
||||
// their first digit sequence would incorrectly treat the date as a major
|
||||
// version and report "up to date" for every ordinary release.
|
||||
if (!IsValidAppVersion(current_version_) || !IsValidAppVersion(result->version)) {
|
||||
LOG_WARN("Cannot compare invalid application versions: current={}, latest={}",
|
||||
current_version_, result->version);
|
||||
ScheduleRetry(now);
|
||||
return true;
|
||||
}
|
||||
latest_ = std::move(result);
|
||||
update_available_ =
|
||||
IsNewerVersionWithMetadata(current_version_, latest_->version,
|
||||
|
||||
Reference in New Issue
Block a user