Documentation
¶
Overview ¶
Package windows handles Windows-specific build steps — currently the .syso resource that embeds the brand icon plus version metadata into the .exe. Compiles on every host (no Windows-only deps), so cross-builds from mac/linux still produce a metadata-rich .exe.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmbedResource ¶
EmbedResource generates a COFF .syso resource alongside main.go so the next `go build` for GOOS=windows picks up the brand W icon plus version metadata (FileDescription, FileVersion, ProductName, etc.).
Returns a cleanup func the caller defers — once `go build` finishes, the temporary .ico and the rsrc_windows_<arch>.syso file are removed.
outputPath is used only as the OriginalFilename hint inside the version resource; nothing is written there.
Types ¶
This section is empty.