How can I JPackage an RPM/PKG/DEB on Windows?

Viewed 386

I am attempting to create an executable for Linux systems using JPackage. I have successfully created an executable for windows using this command:

jpackage --type msi --name EzQuiz --description "EzQuiz by Benjamin Schreiber" --app-version 1.0 --input D:\dev\IdeaProjects\fblaproj\out\artifacts\fbla_gui_jar --dest D:\Users\Work\Desktop\ --main-jar fbla_gui.jar --win-shortcut

However, when I attempt to make an RPM or DEB or PKG with this same command

jpackage --type rpm --name EzQuiz --description "EzQuiz by Benjamin Schreiber" --app-version 1.0 --input D:\dev\IdeaProjects\fblaproj\out\artifacts\fbla_gui_jar --dest D:\Users\Work\Desktop\ --main-jar fbla_gui.jar --linux-shortcut

I get Error: Invalid or unsupported type: [rpm]

On the JPackage command docs I can clearly see RPM is an accepted value allowed values

How can I create an RPM/PKG/DEB file file with jpackage on windows?

1 Answers
Related