Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { // App build info. Info GuarkConfig // Build Config Config struct { // RC for linux. Linux struct { CC string CXX string Ldflags string } // RC for darwin. Darwin struct { CC string CXX string Ldflags string } // Build config for windows. Windows struct { CC string CXX string Windres string Ldflags string } } // build temp dir. Temp string // build logs output. Log *utils.Output // Build dest. Dest string // Clean dest dir if exists. Clean bool // Build targets. Targets []string // Builders Builders []Builder // Builder funcs BeforeFunc func(*Build) error RunFunc func(*Build) error CleanupFunc func(*Build) }
type Builder ¶
type Builder interface { // Setup before run. Before() error // Run the builder. Run() error // Cleanup build. Cleanup() }
Builders/Compilers/Packagers interface.
type DarwinBuilder ¶
type DarwinBuilder struct { // Main build. Build *Build }
Darwin app builder.
func (DarwinBuilder) Before ¶
func (b DarwinBuilder) Before() error
func (DarwinBuilder) Cleanup ¶
func (b DarwinBuilder) Cleanup()
type EmbedBuilder ¶
type EmbedBuilder struct { // Main build. Build *Build // contains filtered or unexported fields }
Embeded files builder.
func (EmbedBuilder) Before ¶
func (b EmbedBuilder) Before() error
func (EmbedBuilder) Cleanup ¶
func (b EmbedBuilder) Cleanup()
type GuarkConfig ¶
type LinuxBuilder ¶
type LinuxBuilder struct { // Main build. Build *Build }
Linux app builder.
func (LinuxBuilder) Before ¶
func (b LinuxBuilder) Before() error
func (LinuxBuilder) Cleanup ¶
func (b LinuxBuilder) Cleanup()
type MetaBuilder ¶
type MetaBuilder struct { // Main build. Build *Build }
Meta files builder.
func (MetaBuilder) Before ¶
func (b MetaBuilder) Before() error
func (MetaBuilder) Cleanup ¶
func (b MetaBuilder) Cleanup()
type WindowsBuilder ¶
type WindowsBuilder struct { // Main build. Build *Build }
Windows app builder.
func (WindowsBuilder) Before ¶
func (b WindowsBuilder) Before() error
func (WindowsBuilder) Cleanup ¶
func (b WindowsBuilder) Cleanup()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.