Linux icon with custom layout #2400
-
The appicon.png won't work for Linux unless I embed it in main.go. However, I cannot embed the image from build/ because the project has a similar layout as https://github.com/wailsapp/wails/tree/master/v2/examples/customlayout. Embed does not allow |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Simple Go trick: put a |
Beta Was this translation helpful? Give feedback.
Simple Go trick: put a
.go
file next to the icon and expose it using a capital first letter. Import the package and use the embedded icon. We use this trick here:https://github.com/wailsapp/wails/blob/master/v2/internal/frontend/runtime/runtime_dev_desktop.go