You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/update/updater.h
+7-15Lines changed: 7 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,16 @@ namespace Nickvision::Update
30
30
*/
31
31
Updater(Updater&& u) noexcept;
32
32
/**
33
-
* @brief Gets the latest stable version from the GitHub repo.
34
-
* @return The current stable version if available, else empty Version
35
-
*/
36
-
Version fetchCurrentStableVersion();
37
-
/**
38
-
* @brief Gets the latest preview version from the GitHub repo.
39
-
* @return The current preview version if available, else empty Version
33
+
* @brief Gets the latest version of the provided type from the GitHub repo.
34
+
* @brief This method looks for tags in the format major.minor.build-dev for preview versions and major.minor.build for stable versions.
35
+
* @param versionType The type of the version to get
36
+
* @return The current version of the provided type if available, else empty Version
40
37
*/
41
-
Version fetchCurrentPreviewVersion();
38
+
Version fetchCurrentVersion(VersionType versionType);
42
39
#ifdef _WIN32
43
40
/**
44
-
* @brief Downloads and installs an application update for Windows. getCurrentStableVersion or getCurrentPreviewVersion should be called first before running this method. This method will force quit the current running application to install the update.
41
+
* @brief Downloads and installs an application update for Windows.
42
+
* @brief fetchCurrentVersion should be called first before running this method.
45
43
* @param versionType The type of version update to install
46
44
* @return True if successful, else false
47
45
*/
@@ -61,12 +59,6 @@ namespace Nickvision::Update
61
59
Updater& operator=(Updater&& u) noexcept;
62
60
63
61
private:
64
-
/**
65
-
* @brief Gets the latest version of the provided type from the GitHub repo
66
-
* @param versionType The type of the version to get
67
-
* @return The current version of the proivded type if available, else empty Version
68
-
*/
69
-
Version fetchCurrentVersion(VersionType versionType);
0 commit comments