tauri-apps / tray-icon

Tray icons for Desktop Applications.
Apache License 2.0
183 stars 27 forks source link

`Icon::from_resource` does not support icon without a ordinal id #135

Closed mokurin000 closed 2 months ago

mokurin000 commented 2 months ago

I used windows-exe-info to link my executable with icon, But in the icon0.rc it generated there is no ordinal id but a string name

image

I tried to pass 1033, 0, 1...13, but neither works I believe We should support both ordinal ID and string ID

According to a document posted in 1992 for windows^0:

The items marked `Name or Ordinal' are the same format used throughout the resource file (most notably in each resource header) to store a name or an ordinal ID.