Fixed icon in jpackage when running from another directory

This commit is contained in:
Josh Larson
2022-07-05 10:53:48 -05:00
parent 054d2efea0
commit d6742906d6

View File

@@ -148,9 +148,9 @@ jlink {
else -> null
}
installerOptions = when(platform) {
"linux" -> listOf("--linux-shortcut", "--icon", "src/main/resources/graphics/ProjectSWG.png")
"win" -> listOf("--win-dir-chooser", "--win-shortcut", "--win-menu", "--icon", "src/main/resources/graphics/ProjectSWG.ico")
else -> listOf("--icon", "src/main/resources/graphics/ProjectSWG.png")
"linux" -> listOf("--linux-shortcut", "--icon", "${projectDir.absolutePath}/src/main/resources/graphics/ProjectSWG.png")
"win" -> listOf("--win-dir-chooser", "--win-shortcut", "--win-menu", "--icon", "${projectDir.absolutePath}/src/main/resources/graphics/ProjectSWG.ico")
else -> listOf("--icon", "${projectDir.absolutePath}/src/main/resources/graphics/ProjectSWG.png")
}
}
}