If I configure my build script like this, the Java...
# compose-desktop
t
If I configure my build script like this, the Java packaging tool creates a very nice .dmg file. Excellent! The menubar picks up the app name for the menu title but the menu item still reads MainKt (see screenshot). Can I configure this on my own besides renaming the corresponding file 🙂 or are there changes inside Compose Desktop needed to make this happen? Thanks in advance
Copy code
compose.desktop {
    application {
        mainClass = "com.thomaskuenneth.tkdupefinder.MainKt"
        nativeDistributions {
            targetFormats(TargetFormat.Dmg)
            packageName = "TKDupeFinder"
            version = "0.1-SNAPSHOT"
            description = "Find duplicate files"
            copyright = "© 2020 Thomas Kuenneth. All rights reserved."
            vendor = "Thomas Kuenneth"
        }
    }
}
💯 2
o
@alexey.tsvetkov may help here
m
jpackage has an option “name”. Have you tried something like name = “YourAppName”?
t
It appears to be set in the constructor; receive the error message "Val cannot be reassigned"