The amount of customisations you can do when packaging a desktop application with the tools provided by Jetbrains is very limited. Under the hood JB uses jpackage which actually allows much more customisation than that. The problem is that there does not seem to be any way to configure this because JB has completely hidden jpackage behind some Gradle DSL wall. Does anybody know a way to pass extra arguments to jpackage for the build? This would make it possible, e.g., to use the features described here: https://docs.oracle.com/en/java/javase/21/jpackage/override-jpackage-resources.html
My motivation at that time was to get access to the "app image" i.e. bundled JVM plus application jars, launcher executable etc. As stated in the last comment on the PR, I found an alternative, less hacky way of achieving that. I guess I did not consider other reasons for still trying to merge this.