UpdateHandler

open class UpdateHandler

Handler for easy updating of the jar file from a GitHub repo.

Functions

Link copied to clipboard
open fun getNewestVersion(ghRepo: String): String
Get the newest release version of an GitHub repo.
Link copied to clipboard
open fun installUpdate(ghRepo: String, assetName: String, mainClass: Class<out Any>)
Replace the .jar from your main class with a new one from GitHub.