Documentation
¶
Overview ¶
Package builder implements the build actions for the supperted OS and arch
Index ¶
- type Android
- func (b *Android) Build(vol *volume.Volume, opts BuildOptions) error
- func (b *Android) BuildEnv() []string
- func (b *Android) BuildLdFlags() []string
- func (b *Android) BuildTags() []string
- func (b *Android) Output() string
- func (b *Android) Package(vol *volume.Volume, opts PackageOptions) error
- func (b *Android) PreBuild(vol *volume.Volume, opts PreBuildOptions) error
- func (b *Android) TargetID() string
- type BuildOptions
- type Builder
- type Darwin
- func (b *Darwin) Build(vol *volume.Volume, opts BuildOptions) error
- func (b *Darwin) BuildEnv() []string
- func (b *Darwin) BuildLdFlags() []string
- func (b *Darwin) BuildTags() []string
- func (b *Darwin) Output() string
- func (b *Darwin) Package(vol *volume.Volume, opts PackageOptions) error
- func (b *Darwin) PreBuild(vol *volume.Volume, opts PreBuildOptions) error
- func (b *Darwin) TargetID() string
- type IOS
- func (b *IOS) Build(vol *volume.Volume, opts BuildOptions) error
- func (b *IOS) BuildEnv() []string
- func (b *IOS) BuildLdFlags() []string
- func (b *IOS) BuildTags() []string
- func (b *IOS) Output() string
- func (b *IOS) Package(vol *volume.Volume, opts PackageOptions) error
- func (b *IOS) PreBuild(vol *volume.Volume, opts PreBuildOptions) error
- func (b *IOS) TargetID() string
- type Linux
- func (b *Linux) Build(vol *volume.Volume, opts BuildOptions) error
- func (b *Linux) BuildEnv() []string
- func (b *Linux) BuildLdFlags() []string
- func (b *Linux) BuildTags() []string
- func (b *Linux) Output() string
- func (b *Linux) Package(vol *volume.Volume, opts PackageOptions) error
- func (b *Linux) PreBuild(vol *volume.Volume, opts PreBuildOptions) error
- func (b *Linux) TargetID() string
- type PackageOptions
- type PreBuildOptions
- type Windows
- func (b *Windows) Build(vol *volume.Volume, opts BuildOptions) error
- func (b *Windows) BuildEnv() []string
- func (b *Windows) BuildLdFlags() []string
- func (b *Windows) BuildTags() []string
- func (b *Windows) Output() string
- func (b *Windows) Package(vol *volume.Volume, opts PackageOptions) error
- func (b *Windows) PreBuild(vol *volume.Volume, opts PreBuildOptions) error
- func (b *Windows) TargetID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Android ¶ added in v1.5.0
type Android struct {
// contains filtered or unexported fields
}
Android is the build for the android OS
func NewAndroid ¶ added in v1.5.0
NewAndroid returns a builder for the android OS
func (*Android) Build ¶ added in v1.5.0
func (b *Android) Build(vol *volume.Volume, opts BuildOptions) error
Build builds the package
func (*Android) BuildEnv ¶ added in v1.5.0
BuildEnv returns the env variables required to build the package
func (*Android) BuildLdFlags ¶ added in v1.5.0
BuildLdFlags returns the default ldflags used to build the package
func (*Android) BuildTags ¶ added in v1.5.0
BuildTags returns the default tags used to build the package
func (*Android) Package ¶ added in v1.5.0
func (b *Android) Package(vol *volume.Volume, opts PackageOptions) error
Package generate a package for distribution
type BuildOptions ¶
type BuildOptions struct { Package string // Package is the package to build named by the import path as per 'go build' LdFlags []string // LdFlags are the ldflags to pass to the compiler Tags []string // Tags are the tags to pass to the compiler StripDebug bool // StripDebug if true, strips binary output Verbose bool // Verbose if true, enable verbose mode }
BuildOptions holds the options to build the package
type Builder ¶
type Builder interface { PreBuild(vol *volume.Volume, opts PreBuildOptions) error Build(vol *volume.Volume, opts BuildOptions) error BuildEnv() []string BuildLdFlags() []string BuildTags() []string Package(vol *volume.Volume, opts PackageOptions) error Output() string TargetID() string }
Builder represents a builder
type Darwin ¶
type Darwin struct {
// contains filtered or unexported fields
}
Darwin is the build for the Darwin OS
func (*Darwin) Build ¶
func (b *Darwin) Build(vol *volume.Volume, opts BuildOptions) error
Build builds the package
func (*Darwin) BuildLdFlags ¶
BuildLdFlags returns the default ldflags used to build the package
func (*Darwin) Package ¶
func (b *Darwin) Package(vol *volume.Volume, opts PackageOptions) error
Package generate a package for distribution
type IOS ¶ added in v1.5.0
type IOS struct {
// contains filtered or unexported fields
}
IOS is the build for the iOS OS
func (*IOS) Build ¶ added in v1.5.0
func (b *IOS) Build(vol *volume.Volume, opts BuildOptions) error
Build builds the package
func (*IOS) BuildEnv ¶ added in v1.5.0
BuildEnv returns the env variables required to build the package
func (*IOS) BuildLdFlags ¶ added in v1.5.0
BuildLdFlags returns the default ldflags used to build the package
func (*IOS) BuildTags ¶ added in v1.5.0
BuildTags returns the default tags used to build the package
func (*IOS) Package ¶ added in v1.5.0
func (b *IOS) Package(vol *volume.Volume, opts PackageOptions) error
Package generate a package for distribution
type Linux ¶
type Linux struct {
// contains filtered or unexported fields
}
Linux is the build for the linux OS
func (*Linux) Build ¶
func (b *Linux) Build(vol *volume.Volume, opts BuildOptions) error
Build builds the package
func (*Linux) BuildLdFlags ¶
BuildLdFlags returns the default ldflags used to build the package
func (*Linux) Package ¶
func (b *Linux) Package(vol *volume.Volume, opts PackageOptions) error
Package generate a package for distribution
type PackageOptions ¶
type PackageOptions struct { Icon string // Icon is the optional icon in png format to use for distribution AppID string // Icon is the appID to use for distribution Verbose bool // Verbose if true, enable verbose mode }
PackageOptions holds the options to generate a package for distribution
type PreBuildOptions ¶
type PreBuildOptions struct { Verbose bool // Verbose if true, enable verbose mode Icon string // Icon is the optional icon in png format to use for distribution AppID string // Icon is the appID to use for distribution }
PreBuildOptions holds the options for the pre build step
type Windows ¶
type Windows struct {
// contains filtered or unexported fields
}
Windows is the build for the Windows OS
func NewWindows ¶
NewWindows returns a builder for the Windows OS
func (*Windows) Build ¶
func (b *Windows) Build(vol *volume.Volume, opts BuildOptions) error
Build builds the package
func (*Windows) BuildLdFlags ¶
BuildLdFlags returns the default ldflags used to build the package
func (*Windows) Package ¶
func (b *Windows) Package(vol *volume.Volume, opts PackageOptions) error
Package generate a package for distribution