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) Check current beetRoot version.static booleanisNewerVersion2(String latestRelease, String currentReleaseVersion) Checks if the latest version is newer than the current version.static voidRuns the update tool from the command line.
-
Constructor Details
-
Update
public Update()Default constructor.
-
-
Method Details
-
getLatestRelease
-
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
Runs the update tool from the command line.- Parameters:
args- the command-line arguments
-