Documentation ¶
Index ¶
- Constants
- Variables
- func DockerBin() string
- func EngineFiles(targetOS string, mode Mode) []string
- func ExecutableExtension(targetOS string) string
- func FlutterBin() string
- func GitBin() string
- func GoBin() string
- func IntermediatesDirectoryPath(targetOS string, mode Mode) string
- func OutputBinary(executableName, targetOS string) string
- func OutputBinaryPath(executableName, targetOS string, mode Mode) string
- func OutputDirectoryPath(targetOS string, mode Mode) string
- type Mode
Constants ¶
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 ¶
var DebugMode = Mode{ Name: "debug_unopt", IsAot: false, }
var JitReleaseMode = Mode{ Name: "debug_unopt", IsAot: false, }
JitReleaseMode is the same debug build, but disables the terminal windows on Windows
var ProfileMode = Mode{ Name: "profile", IsAot: true, }
var ReleaseMode = Mode{ Name: "release", IsAot: true, }
Functions ¶
func EngineFiles ¶ added in v0.44.0
EngineFiles returns the names of the engine files from flutter for the specified platform and build mode.
func ExecutableExtension ¶ added in v0.44.0
ExecutableExtension returns the extension of binary files on a given platform
func FlutterBin ¶
func FlutterBin() string
func IntermediatesDirectoryPath ¶ added in v0.37.0
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
OutputBinary returns the string of the executable used to launch the main desktop app. (appends .exe for windows)
func OutputBinaryPath ¶
OutputBinaryPath returns the path to the go-flutter Application for a specified platform.
func OutputDirectoryPath ¶
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.