Adopt JPackage for Windows and Mac installs
Opened 12 months ago
Last modified 11 months ago
#2729newmisc
Adopt JPackage for Windows and Mac installs
Reported by:Zlatin BalevskyOwned by: Priority: minor Milestone: undecided Component: installer Version: 0.9.45 Keywords: jlink jpackage Cc:
Parent Tickets:
Sensitive: no
Description
With Java 14 comes a tool called JPackage which promises to provide a single "right way" of packaging Java applications. More information and background available here https://openjdk.java.net/jeps/343
I'm already using it successfully in MuWire? on Windows for step 2 of the following 3-step process:
-
Create a mini-JRE with JLink
-
Create an executable with JPackage
-
Create final installer with NSIS
(code available at https://github.com/zlatinb/muwire-pkg)
JPackage can take care of all three steps at once, but the necessity to place the reseed certificates and the geoip database in specific locations forces me to use good old NSIS for the third step. If that can somehow be resolved e.g. with a code change to be able to specify location for these resources I'll happily switch to JPackage for the whole process.
On Mac, JPackage supposedly can generate and sign .dmg images which are the preferred way of distributing applications on Mac.
According to https://www.oracle.com/java/technologies/java-se-support-roadmap.html Oracle will keep the Java 8 download available at least until end of 2020, so I think it's not too soon to start looking for an alternative to the current packaging process.