admin

golang在Windows下生成带图标exe
操作前提:安装 MinGW比如 my-exe.go ico1.ico新建文件my-exe.rcIDI_ICON1 ...
扫描右侧二维码阅读全文
08
2019/12

golang在Windows下生成带图标exe

操作前提:安装 MinGW

比如
my-exe.go ico1.ico
新建文件my-exe.rc
IDI_ICON1 ICON "ico1.ico"

windres -o my-exe.syso my-exe.rc

go build -ldflags="-H windowsgui -w -s"

Last modification:December 8th, 2019 at 11:52 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

captcha
请输入验证码