libnick 2024.12.0
A cross-platform base for native Nickvision applications.
|
An object to check for application updates through GitHub. More...
#include <updater.h>
Public Member Functions | |
Updater (std::string githubRepoUrl) | |
Constructs an Updater. | |
Updater (const Updater &u) | |
Constructs an Updater via copy. | |
Updater (Updater &&u) noexcept | |
Constructs an Updater via move. | |
Version | fetchCurrentVersion (VersionType versionType) |
Gets the latest version of the provided type from the GitHub repo. | |
Updater & | operator= (const Updater &u) |
Copies an Updater. | |
Updater & | operator= (Updater &&u) noexcept |
Moves an Updater. | |
An object to check for application updates through GitHub.
Nickvision::Update::Updater::Updater | ( | std::string | githubRepoUrl | ) |
Constructs an Updater.
githubRepoUrl | The url of the GitHub repo to fetch updates for |
std::invalid_argument | Thrown if the GitHub url is not of valid format |
Nickvision::Update::Updater::Updater | ( | const Updater & | u | ) |
Constructs an Updater via copy.
u | The object to copy |
|
noexcept |
Constructs an Updater via move.
u | The object to move |
Version Nickvision::Update::Updater::fetchCurrentVersion | ( | VersionType | versionType | ) |
Gets the latest version of the provided type from the GitHub repo.
This method looks for tags in the format major.minor.build-dev for preview versions and major.minor.build for stable versions.
versionType | The type of the version to get |