Tool for embedding binary resources in Go programs.
This fork is inspired by:
- Original from
akavel
- Print Source with IDs from
gonutz
- Version Info from
josephspurrier
- Version Info Variant from
Doctible
go install github.com/dentalwings/rsrc
rsrc.exe [-manifest <manifest>] [-ico FILE.ico[,FILE2.ico...]] [OPTIONS...]
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.
-arch <arch>
: Architecture of output file, one of: 386, amd64, arm (experimental), arm64 (experimental) (default "amd64")-ico <icon>
: Comma-separated list of paths to .ico files to embed-manifest <manifest>
: Path to a Windows manifest file to embed-version <version>
: Path to a JSON file for version info-o <output>
: Name of output COFF (.res or .syso) file; if set to empty, will default torsrc_windows_{arch}.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.
- fix or remove FIXMEs
MIT, Copyright 2013-2023 The rsrc Authors.
(NOTE: This project is currently in low-priority maintenance mode. I welcome bug reports and sometimes try to address them, but this happens very randomly. If it works for you, that's great and I'm happy! Still, and especially if not, you might like to check the following more featureful alternative from @tc-hib who is a very nice guy: winres)