Help us shape the future of Go! Take the 2026 Go Developer Survey

installerbuild

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package installerbuild prepares and publishes NSIS installers while retaining the project's installer script and the NSIS compiler as a tool boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompilerEnvironment

func CompilerEnvironment(host string, environment []string) []string

CompilerEnvironment gives only the macOS NSIS child a UTF-8 locale. Its Unicode compiler can abort under the C locale (upstream NSIS issue 1165).

func Create

func Create(ctx context.Context, options Options, compile Compile) error

Create overrides only the generated installer's destination. Relative script assets continue to resolve beside the project's script. A private wrapper adds companion executables, leaving the project's script and binary untouched.

Types

type Compile

type Compile func(ctx context.Context, directory string, args []string) error

type File

type File struct {
	Name string
	Path string
}

type Options

type Options struct {
	Script       string
	Output       string
	Arch         string
	Scope        string
	Primary      File
	Companions   []File
	Version      *buildmeta.Info
	Prepare      func(context.Context, string) error
	Defines      map[string]string
	SkipWebView2 bool
}

func (Options) Validate

func (o Options) Validate() error

Jump to

Keyboard shortcuts

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