Package ch.autumo.beetroot.utils.system
Class Update
java.lang.Object
ch.autumo.beetroot.utils.system.Update
Update Check.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringFetches the latest release version from the GitHub repository.static intisNewerVersion(String latestRelease, String currentReleaseVersion) static booleanisNewerVersion2(String latestRelease, String currentReleaseVersion) Checks if the latest version is newer than the current version.static void
-
Constructor Details
-
Update
public Update()
-
-
Method Details
-
getLatestRelease
Fetches the latest release version from the GitHub repository.- Returns:
- the latest release version as a string
- Throws:
Exception- if an error occurs during the request
-
isNewerVersion2
Checks if the latest version is newer than the current version.- Parameters:
latestRelease- the latest release version (e.g., "1.2.0")currentReleaseVersion- the current release version (e.g., "1.0.0")- Returns:
- true if latestRelease is newer, false otherwise
-
isNewerVersion
-
main
-