Jason H
11/02/2023, 1:34 AMephemient
11/02/2023, 1:41 AMLandry Norris
11/02/2023, 1:41 AMPablichjenkov
11/02/2023, 1:41 AMephemient
11/02/2023, 1:42 AMcompose.desktop {
application {
nativeDistributions {
macOS {
dockName = "..."
iconFile.set(...)
}
}
}
}
Jason H
11/02/2023, 1:43 AMdockName
but it didn't seemingly have any effect. I went through running it directly in Intelli-J and the packageDmg
target. No 🎲 . 😞 The packageReleaseDmg
fails with some proguardReleaseJars
error, so hopefully I don't need it.ephemient
11/02/2023, 1:48 AMInfo.plist
, and for further help check with #compose-desktop as suggested earlierJeff Lockhart
11/02/2023, 1:51 AMrunDistributable
(or runReleaseDistributable
) and not just run
. The menu name is only configured in distributable builds.Jason H
11/02/2023, 1:54 AMlaunch.icns
I was pointing to:
macOS {
bundleID = packageName
val iconsRoot = project.file("src/main/resources/")
iconFile.set(iconsRoot.resolve("launch.icns"))
targetFormats(TargetFormat.Dmg)
this.packageName = "LaunchPad"
dockName = "LaunchPad"
setDockNameSameAsPackageName = true
dmgPackageVersion = appVersion
pkgPackageVersion = appVersion
}
But even this beats the generic java icon, lol!runRelease
& runDistributable
, any ideas? @Jeff LockhartmacOS {
bundleID = packageName
iconFile.set(iconsRoot.resolve("launch.icns"))
targetFormats(TargetFormat.Dmg)
this.packageName = "LaunchPad"
dockName = "LaunchPad"
setDockNameSameAsPackageName = true
dmgPackageVersion = appVersion
pkgPackageVersion = appVersion
}
Jeff Lockhart
11/03/2023, 9:43 PMI wish I could combine gradle'sThere is&runRelease
runDistributable
runReleaseDistributable
, which should do this.Jason H
11/03/2023, 10:35 PMrunReleaseDistributable
) dies on proguard for me. I need to dive into proguard. The proguard stdout/stderr is rough: 642 warnings, 1 error, but I can't find the error (the error log file is empty, and can't see it in stdout).
Does runReleaseDistributable
create a dmg? I'm guessing not.
Example proguard warning:
kotlinx.datetime.serializers.DateBasedDateTimeUnitSerializer: can't find superclass or interface kotlinx.serialization.internal.AbstractPolymorphicSerializer
Jeff Lockhart
11/04/2023, 12:36 AMcompose.desktop {
application {
buildTypes.release.proguard.isEnabled = false
}
}
packageDmg
should create a .dmg, if it's configured:
compose.desktop {
application {
nativeDistributions {
targetFormats(TargetFormat.Dmg)
}
}
}