mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 49 forks source link

Autoupdate of the generated application #107

Open jochenw opened 3 years ago

jochenw commented 3 years ago

As far as I know, an autoupdate of the generated application isn't yet possible. Would someone be willing to work on that with me? Here's the plan:

1.) Introduce a new plugin option "autoUpdatable". (Default value false.) If that option is false, leave everything, as it is now. 2.) If the above option is "true": Do not launch the application directly. Instead, launch a so-called bootstrapper ( a simple, standalone jar file). The bootstrapper checks, whether a new version is downloadable. If so, does the download, extracts the downloaded application, overwriting the old version. (Initial version: Only overwrite, no delete. Exception is the bootstrapper jar, which will be treated as non-overridable, because it is effectively just that, at least on Windows.) As soon as the installation is done, or the "no update available" is detected, the bootstrapper will launch the actual application by building a proper classpath, and invoking the actual Main class.

MKZS1ANDONLY commented 3 years ago

Heyo, Im th3 Guardian I would like to help u on ypur journey