build

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactPaths

func ArtifactPaths(result Result) []string

func HostPlatform

func HostPlatform() string

Types

type Artifact

type Artifact struct {
	TargetName        string
	Package           string
	Platform          string
	OutputPath        string
	ArchivePath       string
	DistributablePath string
	ChecksumSHA256    string
	SizeBytes         int64
	PreHooks          []string
	PostHooks         []string
	HooksSkipped      bool
	UPXEnabled        bool
	UPXLevel          int
}

type Options

type Options struct {
	TargetNames    []string
	PlatformFilter string
	Clean          bool
	DryRun         bool
	Profile        string
	NoHooks        bool
	AutoApprove    bool
}

type Platform

type Platform struct {
	GOOS   string
	GOARCH string
}

type Result

type Result struct {
	ProjectDir          string
	OutDir              string
	Profile             string
	Version             VersionInfo
	Artifacts           []Artifact
	ChecksumPath        string
	BuildMetadataPath   string
	ReleaseManifestPath string
	DryRun              bool
	HooksSkipped        bool
}

func Execute

func Execute(projectDir string, cfg buildconfig.File, opts Options) (Result, error)

type VersionInfo

type VersionInfo struct {
	Version   string
	Commit    string
	BuildTime string
}

Jump to

Keyboard shortcuts

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