gluonfx-maven-plugin icon indicating copy to clipboard operation
gluonfx-maven-plugin copied to clipboard

Icon and title of the OpenJFX Platform binary wrapper

Open jan-tosovsky-cz opened this issue 3 years ago • 4 comments

When native image app is running in Windows, it is shown as a child of the OpenJFX Platform binary wrapper in the Windows Taskbar: image

It would be nice to have both icon and title customizable. That icon (or icons) could be ideally reused from the stage icons.

jan-tosovsky-cz avatar Feb 09 '21 22:02 jan-tosovsky-cz

I can set both icon and label in Resource Hacker tool afterwards, but it would be more convenient to have it specified as a plugin option and applied when generating final exe.

jan-tosovsky-cz avatar Feb 11 '21 19:02 jan-tosovsky-cz

You can actually automate this on Windows by compiling a resource script using rc.exe and using cvtres.exe to convert the output file into an linkable object, you then only have to link the .obj file by passing it as an argument on the link step

You might have a link warning related to glass.lib but that's okay i believe

To do that you have to fork this plugin and modify it as to accept linker arguments (it's almost the same as how they accept compiler arguments), maybe I would try to open a pull request for it but after seeing the legal conditions to become a contributor, i won't do it.

This way of having an icon (or even more metadata for the executable) seems hacky though so I don't really this is the way of doing such thing

freya022 avatar Apr 21 '21 20:04 freya022

Is it planned to add a configuration option to gluonfx-maven-plugin to define an app icon? Love to see related activity on this issue. It would be great if one could set meta data like 'productversion', 'file version' etc. as well 👍

rladstaetter avatar Jan 23 '22 10:01 rladstaetter

Yes, see https://github.com/gluonhq/substrate/issues/1089

jperedadnr avatar Jan 23 '22 10:01 jperedadnr