diff --git a/src/main/groovy/org/beryx/jlink/data/JPackageData.groovy b/src/main/groovy/org/beryx/jlink/data/JPackageData.groovy index 4eda50f8..e19fae46 100644 --- a/src/main/groovy/org/beryx/jlink/data/JPackageData.groovy +++ b/src/main/groovy/org/beryx/jlink/data/JPackageData.groovy @@ -65,6 +65,8 @@ class JPackageData { @Input @Optional String appVersion + String vendor + @Input @Optional String icon @@ -96,6 +98,11 @@ class JPackageData { launcherData.name } + @Input + String getVendor(){ + this.@vendor ?: 'Unknown'; + } + @Input List getSecondaryLaunchers() { this.@secondaryLaunchers diff --git a/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy b/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy index 058deb1e..0cec016b 100644 --- a/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy +++ b/src/main/groovy/org/beryx/jlink/impl/JPackageTaskImpl.groovy @@ -83,6 +83,9 @@ class JPackageTaskImpl extends BaseTaskImpl { throw new GradleException("The first character of the --app-version argument should be a digit.") } + def vendor = jpd.getVendor() + def vendorOpts = ['--vendor',vendor] + final def resourceDir = jpd.resourceDir final def resourceOpts = (resourceDir == null) ? [] : [ '--resource-dir', resourceDir ] @@ -91,6 +94,7 @@ class JPackageTaskImpl extends BaseTaskImpl { '--dest', jpd.installerOutputDir, '--name', jpd.installerName, *versionOpts, + *vendorOpts, '--app-image', "$appImagePath", *resourceOpts, *jpd.installerOptions]