Skip to content

Commit

Permalink
Add warning when --mac-dmg-content is used on unsupported jdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanLobbenmeier committed Feb 14, 2025
1 parent b646e87 commit 7a8fecb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,12 @@ abstract class AbstractJPackageTask @Inject constructor(
cliArg("--win-upgrade-uuid", winUpgradeUuid)
}
OS.MacOS -> {
if (jvmRuntimeInfo.majorVersion >= 18) {
cliArg("--mac-dmg-content", macDmgContents)
if (macDmgContents.isPresent) {
if (jvmRuntimeInfo.majorVersion >= 18) {
cliArg("--mac-dmg-content", macDmgContents)
} else {
logger.warn("Option --mac-dmg-content is only supported from jdk 18")
}
}
}
}
Expand Down

0 comments on commit 7a8fecb

Please sign in to comment.