gluonfx-maven-plugin
gluonfx-maven-plugin copied to clipboard
Icon and title of the OpenJFX Platform binary wrapper
When native image app is running in Windows, it is shown as a child of the OpenJFX Platform binary wrapper in the Windows Taskbar:
It would be nice to have both icon and title customizable. That icon (or icons) could be ideally reused from the stage icons.
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.
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
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 👍
Yes, see https://github.com/gluonhq/substrate/issues/1089