Y

o

k

a

z

e

Go带图标构建

Kaz
Golang
# Script

准备.ico文件

其他格式不行

新建main.rc

自行修改相对路径,内容如下

IDI_ICON1 ICON "assets/logo.ico"

生成main.syso

运行命令:

windres -o main.syso main.rc

然后正常打包就行

go build

Copyright © 2025 KAZE. All rights reserved.