Is there any way to configure the Windows start me...
# compose-desktop
j
Is there any way to configure the Windows start menu name for a CMP app? For Mac OS there's the
dockName
that can be set, but what about Windows and Linux?
a
Copy code
compose.desktop {
    application {
        nativeDistributions {
            packageName = appName
            ...
        }
    ...
}
should do it, no?
j
😅 Honestly didn't think that would be it. I though that field has to be set to a package name like
<http://com.example.app|com.example.app>
. Thanks!
1
@Alexander Maryanovsky tried this and it works. But I now see why I didn't use it before: it also changes the installation directory. My app is simply called "Notes", but installing in a direction called
Program Files/Notes
is too risky. I'd rather set a separate name there, but that's only possible on Mac OS with that
dockName
☹️ I guess I should create a feature request for this
a
-Xdock:name
is a JVM feature. If there’s no such feature for Windows/Linux, I don’t think we’ll be able to do it.
j
Ah, interesting. But everything in the installer should be under JB's control, right? So if
packageName
were to split into
packageName & appName
the first one should be only used for the install location, the second for the shortcut name. The window title itself I can set in code.
a
We use
jpackage
to create the installers. We can only do what it can do.
There is
--win-menu-group
, maybe that can help
j
I don't have other shortcuts, so I don't need a group 🙂 I do see this one:
--install-dir
. That seems to be what I'm looking for: "[..] or relative sub-path of the installation directory such as "Program Files" or "AppData" (on Windows)"
a
Maybe you could run the gradle task
createReleaseDistributable
and then use
jpackage
yourself on that.
That way you can set any jpackage flags yourself.