Documentation
¶
Overview ¶
Package builder compiles a wick app into a raw Go binary plus the platform-native distributable that ships with each release:
windows → .exe with embedded brand icon + version metadata darwin → .app bundle, then .dmg disk image (host-darwin only) linux → .deb binary package
Cross-compilation is supported for everything except .dmg (which requires the macOS-only `hdiutil` tool); cross-builds from non-darwin hosts produce the .app bundle and skip the .dmg step.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveBundleID ¶
ResolveBundleID derives a CFBundleIdentifier-style reverse-DNS string from go.mod's module path. github.com/owner/app → com.owner.app. Falls back to com.example.<appName> when go.mod is missing or the module path can't be parsed.
Lowercased, dots only — anything outside [a-z0-9.-] gets replaced with "-" so Apple's bundle ID rules ([A-Za-z0-9-.]) hold.
Types ¶
type Config ¶
type Config struct {
AppName string
AppVersion string
GOOS string
GOARCH string
Output string
GitHubPAT string
GitHubRepo string
Headless bool
}
Config drives a Build invocation. AppName + AppVersion are baked into the binary via -ldflags; GOOS / GOARCH select the target. Empty fields fall back to runtime defaults.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package darwin handles macOS-specific build steps — wrapping the raw binary into a .app bundle and (host-darwin only) further wrapping that into a .dmg disk image.
|
Package darwin handles macOS-specific build steps — wrapping the raw binary into a .app bundle and (host-darwin only) further wrapping that into a .dmg disk image. |
|
Package linux handles Linux-specific build steps — wrapping the raw binary into a Debian binary package (.deb).
|
Package linux handles Linux-specific build steps — wrapping the raw binary into a Debian binary package (.deb). |
|
Package windows handles Windows-specific build steps — currently the .syso resource that embeds the brand icon plus version metadata into the .exe.
|
Package windows handles Windows-specific build steps — currently the .syso resource that embeds the brand icon plus version metadata into the .exe. |