build

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: BSD-3-Clause 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 JitReleaseMode = Mode{
	Name:  "debug_unopt",
	IsAot: false,
}

JitReleaseMode is the same debug build, but disables the terminal windows on Windows

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 added in v0.44.0

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 added in v0.44.0

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 added in v0.37.0

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 added in v0.41.0

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 added in v0.44.0

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