windows

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

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

func EmbedResource(outputPath, appName, appVersion string) (func(), error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL