Skip to content

Commit

Permalink
Added iconOpts to the jpackage commandline. Addresses issue #235
Browse files Browse the repository at this point in the history
  • Loading branch information
showbags authored and airsquared committed Sep 24, 2023
1 parent 2e3fc63 commit eb992a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class JPackageTaskImpl extends BaseTaskImpl<JPackageTaskData> {

final def resourceDir = jpd.resourceDir
final def resourceOpts = (resourceDir == null) ? [] : [ '--resource-dir', resourceDir ]
final def iconOpts = jpd.icon ? [ '--icon', jpd.icon ] : []

commandLine = [jpackageExec,
'--type', packageType,
Expand All @@ -97,7 +98,8 @@ class JPackageTaskImpl extends BaseTaskImpl<JPackageTaskData> {
*vendorOpts,
'--app-image', "$appImagePath",
*resourceOpts,
*jpd.installerOptions]
*jpd.installerOptions,
*iconOpts]
}
if(result.exitValue != 0) {
LOGGER.error(project.ext.jpackageInstallerOutput())
Expand Down

0 comments on commit eb992a4

Please sign in to comment.