build

package
v0.0.0-...-164d800 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BuildPath = "go"

BuildPath sets the name of the directory used to store the go-flutter project. Much like android and ios are already used.

Variables

View Source
var DebugMode = Mode{
	Name:  "debug_unopt",
	IsAot: false,
}
View Source
var ProfileMode = Mode{
	Name:  "profile",
	IsAot: true,
}
View Source
var ReleaseMode = Mode{
	Name:  "release",
	IsAot: true,
}

Functions

func DockerBin

func DockerBin() string

func EngineFiles

func EngineFiles(targetOS string, mode Mode) []string

EngineFiles returns the names of the engine files from flutter for the specified platform and build mode.

func ExecutableExtension

func ExecutableExtension(targetOS string) string

ExecutableExtension returns the extension of binary files on a given platform

func FlutterBin

func FlutterBin() string

func GitBin

func GitBin() string

func GoBin

func GoBin() string

func IntermediatesDirectoryPath

func IntermediatesDirectoryPath(targetOS string, mode Mode) string

IntermediatesDirectoryPath returns the path where the intermediates stored. If needed, the directory is create at the returned path.

Those intermediates include the dynamic library dependencies of go-flutter plugins. hover copies these intermediates from flutter plugins folder when `hover plugins get`, and copies to go-flutter's binary output folder before build.

func OutputBinary

func OutputBinary(executableName, targetOS string) string

OutputBinary returns the string of the executable used to launch the main desktop app. (appends .exe for windows)

func OutputBinaryPath

func OutputBinaryPath(executableName, targetOS string, mode Mode) string

OutputBinaryPath returns the path to the go-flutter Application for a specified platform.

func OutputDirectoryPath

func OutputDirectoryPath(targetOS string, mode Mode) string

OutputDirectoryPath returns the path where the go-flutter binary and flutter binaries blobs will be stored for a particular platform. If needed, the directory is create at the returned path.

Types

type Mode

type Mode struct {
	Name  string
	IsAot bool
}

Jump to

Keyboard shortcuts

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