-
Notifications
You must be signed in to change notification settings - Fork 3
Native Bundles
Packaging up a desktop app with installers for Windows, Linux and Mac.
Excellent tutorial: http://code.makery.ch/library/javafx-8-tutorial/part7/
Basically, we create an ant task from maven's pom.xml (I know, Maven + Ant...) using an Eclipse plugin called E(fx)clipse. The plugin generates a build.xml for ant that still needs some work. Hopefully I'll manage to cleanup build.xml so it works on Windows and Linux without any modification.
Some changes require us to copy the html/js/css resources and also the RXTX native libraries. The Ant taks calls into a "packager" that Oracle provides with Java 8. It's really useful, it natively packages for Linux (deb and rpm) and calls into a Windows installer called Inno Setup.
So the steps that are needed for generating native bundles, consist into installing Ant and Inno Setup. In both cases, for Windows, their paths need to be added to the system path. After that, one should only need to go on buildlinux or buildwin and call "ant", magic will follow.
A native bundle for Mac can also be generated, I don't have a Mac, so please let me know when you try!
Inno Setup: http://www.jrsoftware.org/isinfo.php