-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: windows app icon + default icon from toml #3753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Building with winres is now mandatory since app may build but fail to run due to how default icon for window is managed - fixed default bundle icon path fail for windows
… to the same file
|
Why didn't previous versions support Windows app icons? |
|
windows is windows and always needs something special, aka building a resource file with a specific program |
changed bundle_dir to build_dir
since the app icon is expected, winres should also be expected to avoid successful builds with the app not launching because of that
|
In the docs somewhere there should be a notice that windows is very bad at updating app icons of installed apps, so if you bundle the app, install it, change the icon and bundle again and reinstall - it will look buggy with old icon in some places and new one on other, with the only fix being restarting the pc or at least restarting the explorer didn't seem to fix it on my machine |
|
Anything left i can help with to bring this over the finish line? 0.7 is is nearing its release and i would love to not use a workaround for my current releases with 0.6 to have app icons. |
There are a few changes that needs to be done.
I think this is everything unless @jkelleyrtp has anything to add, feel free to work on this |
|
microsoft has since added windows-resource to crates, but before they release anything it will be another half a year or more or it may not even be related to the resource compiler based on their sense of naming things |
1. fix winres for workspaces 2. winres will only be created for --release flag
This reverts commit ff109fe.
added icon_from_memory and icon_from_path helper functions for setting icons
|
I think that this is pretty much finished now. From the comment above 1. is probably out of scope but should work if you have the tools setup correctly, |
|
I think the work here is relevant #4958 idk. |
Closes: #3648
Closes: #3596
Windows app resources will only be build with --release flag, otherwise it will be embedded (no app icon (thumbnail) or metadata when installed)
This pr also reduces the binary size since including icon is now deduplicated.
Added functions: default_icon, icon_from_memory, icon_from_path
Tested only on windows 11