buildpkg

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 6 Imported by: 1

README

Tests on Linux, MacOS and Windows Go Report Card GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Options
}

func New

func New(opts Options) (*Builder, error)

New creates a new Builder.

func (*Builder) Build

func (b *Builder) Build() error

Build signs the binary, builds the package and signs and notarizes and staples it. It' currently limited to 1 file only. The notarization part requires the following environment variables to be set: - MACOSNOTARYLIB_ISSUER_ID - MACOSNOTARYLIB_KID - MACOSNOTARYLIB_PRIVATE_KEY (in base64 format).

type Options

type Options struct {
	// The Info logger.
	// If nil, no Info logging will be done.
	Infof func(format string, a ...interface{})

	// The Dir to build from.
	Dir string

	// Developer ID Application + Developer ID Installer
	// https://developer.apple.com/account/resources/certificates/list
	SigningIdentity string

	// The result
	PackageOutputFilename string

	// The staging directory where all your build artifacts are located.
	StagingDirectory string

	// E.g. io.gohugo.hugo
	Identifier string

	// E.g. 234
	Version string

	// E.g. /Applications
	InstallLocation string

	// Scripts passed on the command line --scripts flag.
	// E.g. /mypkgscripts
	ScriptsDirectory string

	// Flags to enable skipping of build steps.
	SkipCodeSigning      bool
	SkipInstallerSigning bool
	SkipNotarization     bool
}

Jump to

Keyboard shortcuts

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