[Docs] Document what ReleaseChannel::getTargetVersionForCurrentOS returns (#7882)

This commit is contained in:
AI-scor 2026-11-10 18:52:09 +01:00 • committed by GitHub
parent 223ab844a0
commit 5c7ac6412e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,6 +98,10 @@ protected:
Release *lastRelease; Release *lastRelease;
protected: protected:
// Major OS version an installer asset targets, parsed from its file name; std::nullopt when
// the asset has to be skipped: the name carries no target version, that version is newer
// than this host's OS, or the platform publishes no updater assets (Linux, 32-bit Windows).
// nullopt therefore means "not for this host", not "unknown version".
static std::optional<int> getTargetVersionForCurrentOS(const QString &fileName); static std::optional<int> getTargetVersionForCurrentOS(const QString &fileName);
static QString findBestDownloadUrl(const QVariantList &assets); static QString findBestDownloadUrl(const QVariantList &assets);
[[nodiscard]] virtual QString getReleaseChannelUrl() const = 0; [[nodiscard]] virtual QString getReleaseChannelUrl() const = 0;