builder

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfFileName = "build.json"
)

Variables

This section is empty.

Functions

func FindGoProxy

func FindGoProxy() (p string)

func FindXgoDockerImage

func FindXgoDockerImage() (imgName string)

func IsGoCompilerInstalled

func IsGoCompilerInstalled() bool

func IsOsslsigncodeInstalled

func IsOsslsigncodeInstalled() (ok bool)

func IsUPXInstalled

func IsUPXInstalled() bool

func IsXgoInstalled

func IsXgoInstalled() bool

Types

type Builder

type Builder struct {
	WorkDir            string   `json:"work_dir"`
	ArchOSList         []string `json:"arch_os_list"`
	BuildArgs          []string `json:"build_args"`
	EnableCGoWithXGo   bool     `json:"enable_cgo_with_xgo"`
	XGoImage           string   `json:"xgo_image"`
	XGoDeps            string   `json:"xgo_deps"`
	XGoDepsArgs        string   `json:"xgo_deps_args"`
	EnableZip          bool     `json:"enable_zip"`
	EnableGarble       bool     `json:"enable_garble"`
	EnableUPX          bool     `json:"enable_upx"`
	EnableOsslsigncode bool     `json:"enable_osslsigncode"`
	OsslPfxFilePath    string   `json:"ossl_pfx_file_path"`
	OsslPfxPassword    string   `json:"ossl_pfx_password"`
	OsslPfxCompany     string   `json:"ossl_pfx_company"`
	OsslPfxWebsite     string   `json:"ossl_pfx_website"`
}

func NewBuilder

func NewBuilder() (b *Builder)

func (*Builder) Build

func (b *Builder) Build()

func (*Builder) FixBinaryName

func (b *Builder) FixBinaryName(osInfo, archInfo, binDir, binName string)

func (*Builder) LoadConf

func (b *Builder) LoadConf()

func (*Builder) PackWithUPX

func (b *Builder) PackWithUPX(osInfo, archInfo, binDir, binName string)

func (*Builder) PrepareArgs

func (b *Builder) PrepareArgs(osInfo, archInfo string) (args []string, targetDir, binName string)

func (*Builder) ProjectDir

func (b *Builder) ProjectDir() string

func (*Builder) SignWithOsslsigncode

func (b *Builder) SignWithOsslsigncode(osInfo, archInfo, binDir, binName string)

func (*Builder) UseXGO

func (b *Builder) UseXGO(osInfo, archInfo, binDir, binName string, oldArgs []string) (newArgs []string)

func (*Builder) Zip

func (b *Builder) Zip(osInfo, archInfo, binDir, binName string)

Jump to

Keyboard shortcuts

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