Documentation
¶
Overview ¶
Package winres makes the Windows resources of planck-client.exe and planck-host.exe and checks a built exe for them.
MyGo's Windows backend gives its window class icon resource 1 (LoadIconW(instance, 1)), and go build links the .syso files of a main package. So each command keeps rsrc_windows_amd64.syso, made by Generate from assets/planck-windows.ico and internal/version (go run ./scripts/winres generate). The file also holds the version resource that Explorer's Details tab and SmartScreen show.
Index ¶
Constants ¶
const SysoName = "rsrc_windows_amd64.syso"
SysoName is the file go build links into a windows/amd64 build.
Variables ¶
var IconSizes = []int{16, 20, 24, 32, 40, 48, 64, 128, 256}
IconSizes are the sizes the shell asks for at 100 % to 200 % scale: 16, 20, 24 for the small icon, 32, 40, 48 for the big one and the taskbar, and 64 to 256 for Explorer. The .ico must have each of them.
var Targets = []struct { Dir string Exe Exe }{ {"cmd/planck-client", Exe{Name: "planck-client", Description: "Planck"}}, {"cmd/planck-host", Exe{Name: "planck-host", Description: "Planck Host"}}, }
Targets are the shipped commands, by the folder of their main package.
Functions ¶
Types ¶
type Exe ¶
type Exe struct {
// Name is the file name without .exe, such as planck-client.
Name string
Description string
}
Exe describes one executable for its version resource.