variables

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EDITOR_FLAGS   = "platform=x11 target=release_debug tools=yes"
	EXPORT_FLAGS   = "platform=x11 target=release tools=no"
	HEADLESS_FLAGS = "platform=server target=release_debug tools=yes"
	SERVER_FLAGS   = "platform=server target=release tools=no"
)
View Source
const ALL_SELECTOR string = "all"

Variables

View Source
var FriendlyNames = map[string]string{
	"godot.x11.opt.tools":        "editor",
	"godot.x11.opt":              "export",
	"godot_server.x11.opt":       "server",
	"godot_server.x11.opt.tools": "headless",
}

More human readable names for the output build files. Will be used in helper's move built methods in the future Example "3.2.3-stable.godot_server.x11.opt.64.llvm" -> "3.2.3-stable.server.64.llvm"

View Source
var Platforms = []string{
	"linux/amd64",
	"linux/arm",
	"linux/arm64",
}

Supported platforms for building

View Source
var ToolQuestions = []*survey.Question{
	{
		Name: "downloadver",
		Prompt: &survey.MultiSelect{
			Message: "Choose versions to download",
			Options: Versions,
		},
	},
	{
		Name: "buildver",
		Prompt: &survey.MultiSelect{
			Message: "Choose versions to build",
			Options: Versions,
		},
	},
	{
		Name: "binarytypes",
		Prompt: &survey.MultiSelect{
			Message: "Choose binary types to build",
			Options: Types,
			Default: []string{Types[0]},
		},
	},
	{
		Name: "removezips",
		Prompt: &survey.Confirm{
			Message: "Remove downloaded zip files?",
			Default: false,
		},
	},
	{
		Name: "movebuilt",
		Prompt: &survey.Confirm{
			Message: "Move built binaries to build/ ?",
			Default: false,
		},
	},
	{
		Name: "renamefriendly",
		Prompt: &survey.Confirm{
			Message: "Rename builds to a more friendly name?",
			Default: false,
		},
	},
}
View Source
var Types = []string{
	"editor",
	"export",
	"headless",
	"server",
}

Supported binaries or types for building

View Source
var Versions = []string{
	"3.2.3-stable",
	"3.2.2-stable",
	"3.2.1-stable",
	"3.2-stable",
	"3.1.2-stable",
	"3.1.1-stable",
	"3.1-stable",
}

Supported versions for building

Functions

This section is empty.

Types

type ToolAnswerType

type ToolAnswerType struct {
	DownloadVer    []string
	BuildVer       []string
	BinaryTypes    []string
	RemoveZips     bool
	MoveBuilt      bool
	RenameFriendly bool
}
var ToolAnswers ToolAnswerType

Jump to

Keyboard shortcuts

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