Closed dawidm closed 3 years ago
OK, I was doing it wrong, --temp option should be added in installerOptions. It works as supposed, but works only for generating one package in a single run (when generating two packages, temp directory is full after making the first one which causes an error).
I'm using the plugin on Linux. As far as I understand this:
should pass --temp parameter to the jpackage command. It seems to be working with jpackage gradle target because if provided directory is not empty an error occurs.
If directory is empty or doesn't exist (as expected by the jpackage tool) it doesn't cause any errors but temp files are created in /tmp/... directory and removed after finishing instead of being created in provided directory and not being removed (as described here https://docs.oracle.com/en/java/javase/14/docs/specs/man/jpackage.html).
Additionally I've tried to use jpackage alone (without gradle) for example:
jpackage -n test --type rpm --app-image build/image --temp jptmp
And temp files are created in jptmp directory and not removed, as expected.