|
|
|
@ -321,8 +321,8 @@ abstract class AbstractJPackageTask @Inject constructor(
|
|
|
|
|
|
|
|
|
|
val mappedJar = libsMapping[launcherMainJar.ioFile]?.singleOrNull() |
|
|
|
|
?: error("Main jar was not processed correctly: ${launcherMainJar.ioFile}") |
|
|
|
|
val mainJarRelative = (if (currentTarget.os == OS.Windows) "\\" else "/") + mappedJar.relativeTo(libsDir.ioFile).toString() |
|
|
|
|
cliArg("--main-jar", mainJarRelative) |
|
|
|
|
val mainJarPath = mappedJar.normalizedPath(base = libsDir.ioFile) |
|
|
|
|
cliArg("--main-jar", mainJarPath) |
|
|
|
|
cliArg("--main-class", launcherMainClass) |
|
|
|
|
|
|
|
|
|
if (currentOS == OS.Windows) { |
|
|
|
|