petr-panteleyev / jpackage-gradle-plugin

JPackage Gradle Plugin
https://codeberg.org/petr-panteleyev/jpackage-gradle-plugin
BSD 2-Clause "Simplified" License
97 stars 13 forks source link

Proposal: support multiple image types #33

Closed Zimbrando closed 6 months ago

Zimbrando commented 9 months ago

Sometimes projects want to ship software in both image types supported by jpackage for a determined OS. I found a way to implement it overriding the action() function.

https://github.com/AlchemistSimulator/Alchemist/blob/9d0ba2e8a8264cebf737126051e1615e4bcd1753/alchemist-full/build.gradle.kts#L46-L60

It looks kinda ugly, it could be avoided by supporting a list of types instead of one single type.

Achille004 commented 2 months ago

@Zimbrando Your solution works really well, I did not think of extending it like that. Thank you very much!