Skip to content

Commit

Permalink
Added iconOpts to the jpackage commandline. Addresses issue #235 (#236)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: showbags <[email protected]>
Co-authored-by: airsquared <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2023
1 parent 2e3fc63 commit 38707f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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,6 +98,7 @@ class JPackageTaskImpl extends BaseTaskImpl<JPackageTaskData> {
*vendorOpts,
'--app-image', "$appImagePath",
*resourceOpts,
*iconOpts,
*jpd.installerOptions]
}
if(result.exitValue != 0) {
Expand Down

0 comments on commit 38707f5

Please sign in to comment.