edvin / fxlauncher

Auto updating launcher for JavaFX Applications
Apache License 2.0
713 stars 110 forks source link

Create Exe or Debian Package #178

Open dhavalsolanki opened 5 years ago

dhavalsolanki commented 5 years ago

Hello, I am using fxlauncher in my application. Is there any way to create exe and debian package using fxlauncher api.

edvin commented 5 years ago

Yes, that's literally what it does - package your app and wrap it in an executable. Please see one of the example projects (maven or gradle). You will need to run the installer step once on each target platform to get a binary.

dhavalsolanki commented 5 years ago

But it is actually generating executable exe. Can i generate installer for my project ?

edvin commented 5 years ago

Yes, there is a generate-installer step in the example projects which builds installers. On windows, it has a prerequisite on a third party installer framework, which it will prompt you for during installation.

dhavalsolanki commented 5 years ago

Hello, Thanks for the response. Now i am stuck in creating a debian package of fxlauncher, is there any way to create it using any maven plugin ?

edvin commented 5 years ago

Fxlauncher uses javapackager to create a deb package if you include -native deb, like it is described in the docs:

https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javapackager.html