How do you make a getdown project jpackage compatible?

52 views
Skip to first unread message

Magikarp

unread,
Oct 20, 2022, 10:56:33 AM10/20/22
to OOO Libs

Hi, forgive me if this is the wrong place to ask this question, but I don't know where else to post.

I would like to just use jpackage like so : jpackage --main-jar getdown.jar --ico ...... etc
But the problem is, you need to pass in the folder containing the getdown files as an --argument, which we don't know at runtime if we enable --win-dir-chooser.

The current solutions I have come up with is just forking the project and adding a line to detect the getdown.txt in the same folder as getdown-launcher.jar( or getdown.jar), and use that as an argument from within java code. Or, using a "middle man" jar as the --main-jar "MiddleMan.jar" to call getdown.jar with the needed argument that does the same exact thing from within java code.

Is there already a way to package the getdown.jar files with getdown.txt so as to make it compatible with jpackage --win-dir-chooser ?

Magikarp

unread,
Oct 25, 2022, 8:52:01 AM10/25/22
to OOO Libs
This answer seemed to work
Reply all
Reply to author
Forward
0 new messages