buildinfo

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package buildinfo identifies the running binary, independently of protocol version.

Index

Constants

This section is empty.

Variables

View Source
var BuildTime string
View Source
var ReleaseRepo = "koltyakov/control"
View Source
var Version = "dev"

Build metadata is set by the release/development builder using -ldflags.

Functions

func ExecutableSHA256 added in v0.8.4

func ExecutableSHA256() (string, error)

ExecutableSHA256 hashes actual on-disk bytes, including a derived GUI image. Use it for copying this executable, not the normalized managed software ID.

func UseWindowsGUISource added in v0.8.4

func UseWindowsGUISource(source string) error

UseWindowsGUISource reports the original release checksum for a console-free runtime only after proving that its entire image differs solely in Subsystem. Call before Current during direct Windows User startup. Ordinary version inspection continues to report the actual executable's checksum.

Types

type Info

type Info struct {
	Version     string `json:"version"`
	ReleaseRepo string `json:"releaseRepo,omitempty"`
	BuildTime   string `json:"buildTime,omitempty"`
	OS          string `json:"os"`
	Arch        string `json:"arch"`
	SHA256      string `json:"sha256,omitempty"`
	Runtime     string `json:"runtime,omitempty"`
	// Epoch zero denotes gateways predating explicit compatibility declarations.
	GatewayProtocol int `json:"gatewayProtocol,omitempty"`
	NodeGatewayMin  int `json:"nodeGatewayMin,omitempty"`
	NodeGatewayMax  int `json:"nodeGatewayMax,omitempty"`
}

func Current

func Current() Info

func (Info) SupportsGateway added in v0.5.7

func (i Info) SupportsGateway(epoch int) bool

SupportsGateway is an explicit executable declaration, not a version guess. An absent range must retain gateway-first update ordering.

Jump to

Keyboard shortcuts

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