加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.txt 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
rsrc - Tool for embedding binary resources in Go programs.
INSTALL: go get github.com/akavel/rsrc
USAGE:
rsrc.exe [-manifest FILE.exe.manifest] [-ico FILE.ico[,FILE2.ico...]] -o FILE.syso
Generates a .syso file with specified resources embedded in .rsrc section,
aimed for consumption by Go linker when building Win32 excecutables.
The generated *.syso files should get automatically recognized by 'go build'
command and linked into an executable/library, as long as there are any *.go
files in the same directory.
OPTIONS:
-arch string
architecture of output file - one of: 386, amd64, [EXPERIMENTAL: arm, arm64] (default "386")
-data string
path to raw data file to embed [WARNING: useless for Go 1.4+]
-ico string
comma-separated list of paths to .ico files to embed
-manifest string
path to a Windows manifest file to embed
-o string
name of output COFF (.res or .syso) file (default "rsrc.syso")
Based on ideas presented by Minux.
In case anything does not work, it'd be nice if you could report (either via Github
issues, or via email to czapkofan@gmail.com), and please attach the input file(s)
which resulted in a problem, plus error message & symptoms, and/or any other details.
TODO MAYBE/LATER:
- fix or remove FIXMEs
LICENSE: MIT
Copyright 2013-2020 The rsrc Authors.
http://github.com/akavel/rsrc
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化