开发者

Mono .EXE assembly set explorer icon

开发者 https://www.devze.com 2022-12-09 22:37 出处:网络
When compiling with gmcs on Linux, how can I set the explorer icon the final EXE will use? I have a .ico file to attach to the output exe.

When compiling with gmcs on Linux, how can I set the explorer icon the final EXE will use?

I have a .ico file to attach to the output exe.

The answer must be build-automatable and execute on Linux (w/o wine -- build machine architecture is not x86).

GCC and binutils targeting Windows开发者_运维问答 x86 are available. If you give the answer referring to their short (non-cross) names I'll be able to figure out their cross names easily enough.


Looks like it is done the same way as .Net (learned from looking at the output window of a build in Visual Studio):

/win32icon:my.ico

So something like this:

gmcs myprog.cs /win32icon:my.ico
0

精彩评论

暂无评论...
验证码 换一张
取 消