Documentation ¶
Index ¶
- Constants
- func FindGoProxy() (p string)
- func FindXgoDockerImage() (imgName string)
- func IsGoCompilerInstalled() bool
- func IsOsslsigncodeInstalled() (ok bool)
- func IsUPXInstalled() bool
- func IsXgoInstalled() bool
- type Builder
- func (b *Builder) Build()
- func (b *Builder) FixBinaryName(osInfo, archInfo, binDir, binName string)
- func (b *Builder) LoadConf()
- func (b *Builder) PackWithUPX(osInfo, archInfo, binDir, binName string)
- func (b *Builder) PrepareArgs(osInfo, archInfo string) (args []string, targetDir, binName string)
- func (b *Builder) ProjectDir() string
- func (b *Builder) SignWithOsslsigncode(osInfo, archInfo, binDir, binName string)
- func (b *Builder) UseXGO(osInfo, archInfo, binDir, binName string, oldArgs []string) (newArgs []string)
- func (b *Builder) Zip(osInfo, archInfo, binDir, binName string)
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) FixBinaryName ¶
func (*Builder) PackWithUPX ¶
func (*Builder) PrepareArgs ¶
func (*Builder) ProjectDir ¶
func (*Builder) SignWithOsslsigncode ¶
Click to show internal directories.
Click to hide internal directories.