SKCraft / Launcher

🚀 Distribute your Minecraft modpacks with a custom launcher
Other
618 stars 431 forks source link

jpackage Packaging Tool #423

Open Kore-Development opened 3 years ago

Kore-Development commented 3 years ago

The methods of distributing the bootstrapper may be able to be replaced with jpackage. As far as I know, jpackage will not be an incubating feature in Java 17 meaning that in production you will likely need Java 17 to use jpackage. It became an incubating feature in Java 14. https://github.com/SKCraft/Launcher/wiki/Configuring-Self-Update#distributing-executables

More info here: https://www.baeldung.com/java14-jpackage

Kore-Development commented 3 years ago

To make it a simple EXE file instead of a folder that you would need to unzip, you could create an SFX archive with WinRAR.

hedgehog1029 commented 3 years ago

Yes, jpackage and jmods are an interesting feature that might help with app distribution, since it allows you to bundle the required bits of the JRE with the app and create installable app images. I am looking into this already but it will probably take a while to actually be implemented.