akavel / rsrc

Tool for embedding .ico & manifest resources in Go programs for Windows.
MIT License
1.22k stars 122 forks source link

Can this library be used under linux #40

Closed hanxiaohuivc closed 2 years ago

hanxiaohuivc commented 2 years ago

Can this library be used under linux Hello. Can I use rsrc under linux? How to use it? I generated the syso file, but the executable icon didn't change. thanks.

servusdei2018 commented 2 years ago

@hanxiaohuivc as I understand it, this tool is to change the Windows manifest and icon. You can use Go on linux to make an exe, and rsrc on linux to give it an icon and change its manifest, but rsrc is for Windows exe's and not linux ones.

On linux, you typically have a .desktop file, which is independent of your actual program, and that is how you add an icon to your program.

hanxiaohuivc commented 2 years ago

Yes. Only .desktop files can be used under linux. thanks.

ChugunovRoman commented 1 year ago

@servusdei2018 Hi, I know the Go automatically embeded *.syso files when I build an app, but why this does not happens when I build app for Windows on Linux?

servusdei2018 commented 1 year ago

@ChugunovRoman as far as I know, .syso files are embedded too when you build for Windows on Linux. Probably your .syso file is misconfigured though, you might have better luck with the syso utility. If that still doesn't work, I recommend asking on the Golang discord: https://discord.com/invite/golang