/go-metainfo

为Golang程序添加图标、详细信息

Primary LanguageGo

Go-metainfo

Windows

windres.exe -i .\main.rc -o main.syso
go build -ldflags "-s -w" -trimpath -o .\hello.exe

Linux

x86_64-w64-mingw32-windres -F pe-x86-64 main.rc -O coff -o main.syso

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o .\hello.exe

alt text