install Update
open fun installUpdate(ghRepo: String, assetName: String, mainClass: Class<out Any>)
Content copied to clipboard
Replace the .jar from your main class with a new one from GitHub.
Parameters
gh Repo
The repo path. Something like 'scolastico-dev/s.Tools'.
asset Name
The asset name which should be downloaded from GitHub.
main Class
The main class of your application to get the correct path to the .jar file.
Throws
If the connection was not successful.
javassist. Not Found Exception
If the asset file was not found.