Description
Problem
On Windows, if you try to change the location of your icon image via editing dioxus.toml under [bundle] using the icon variable, your choice is not respected when bundling for Desktop Windows. It will automatically default to project\\icons/icon.ico\
Additionally, the guide suggests a format like icon = "assets/favicon.png"
however, on Windows, the tag is only parsed if passed as a sequence icon = ["assets/favicon.png"]
That particular issue appears to happen on Linux as well in my testing.
Steps To Reproduce
Steps to reproduce the behavior:
- Create Windows app
- Set icon in Dioxus.toml
- Attempt to bundle
Expected behavior
The icon should be selected from the path given in the icon tag.
Screenshots
Environment:
- Dioxus version: 0.6.2
- Rust version: 1.84.0
- OS info: Windows 11 Pro
- App platform: Desktop Windows
Workaround
This can be worked around by creating the file and folder that Dioxus tries to access icons\icon.ico
.