installUpdate

open fun installUpdate(ghRepo: String, assetName: String, mainClass: Class<out Any>)

Replace the .jar from your main class with a new one from GitHub.

Parameters

ghRepo

The repo path. Something like 'scolastico-dev/s.Tools'.

assetName

The asset name which should be downloaded from GitHub.

mainClass

The main class of your application to get the correct path to the .jar file.

Throws

If the connection was not successful.

javassist.NotFoundException

If the asset file was not found.