Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoupdate of the generated application #107

Open
jochenw opened this issue Aug 6, 2020 · 1 comment
Open

Autoupdate of the generated application #107

jochenw opened this issue Aug 6, 2020 · 1 comment
Assignees

Comments

@jochenw
Copy link
Member

jochenw commented Aug 6, 2020

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.

@jochenw jochenw self-assigned this Aug 6, 2020
@MKZS1ANDONLY
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants