-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
FR: Support compiling application bundles that compose can use to auto-update applications #1043
Comments
what are the difficulties? |
The owner of update4j proposed a solution last night. You can find the conversation here - update4j/update4j#149 I got a bit lost in the update4j documentation but I'll try implementing the proposed solution this weekend. Can someone comment on the name changes for the jars? i.e. |
I also foucus on it. I'm develop a application can install plugin. |
I found it generate by this |
I think this should be something that the gradle plugin provides to us. Some thoughts I wrote down in slack: It’s lots of simple problems to solve that are complex when combined together I think. Lots of smaller questions come up:
The solution I’ve played around with in my head is to download all the changed files from the previous version, and then downloading a small Kotlin Native executable for the specific platform, and then running that native executable, killing the current process, having the native executable swap out all the files, and then restarting the application. It’s also theoretically possible though to live update the application without even killing the process if you are only updating classes. I’ve tried this though, and it’s much more complicated than I’d hoped. |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
There are several external libraries that allow Java applications to do auto-update with bundles (i.e. https://github.com/update4j/update4j ), but it seems that it's very difficult to use these currently with Compose in order to achieve the auto-updating functionality.
After messing around with the various options, it seems like the best solution is to have the Compose team provide something that would allow the compose desktop applications to update themselves when provided with a file bundle, or something of the sort.
The text was updated successfully, but these errors were encountered: