Invocation settings

Settings is referenced in 3 repositories



type Settings struct {
	AppName       string `json:",omitempty"`
	ArtifactsDest string `json:",omitempty"`
	//0.13.x. If this starts with a FileSeparator then ignore top dir
	OutPath string `json:",omitempty"`

	//0.2.0 ArtifactTypes replaces ZipArchives bool
	//0.5.0 ArtifactTypes is replaced by tasks
	//ArtifactTypes []string //default = 'zip'. Also 'bin'
	//0.5.0 Codesign replaced by codesign task
	//Codesign      string   //mac signing identity

	//0.2.0 Tasks replaces IsBuildToolChain bool
	//0.5.0 Tasks is a much longer list.
	Tasks []string `json:",omitempty"`

	//0.5.0 adding exclusions. Easier for dealing with aliases. (e.g. Tasks=[default], TasksExclude=[rmbin] is easier than specifying individual tasks)
	TasksExclude []string `json:",omitempty"`

	//0.5.0 adding extra tasks.
	TasksAppend []string `json:",omitempty"`
	//0.9.9 adding 'prepend'
	TasksPrepend []string `json:",omitempty"`

	//0.6 complement Os/Arch with BuildConstraints
	Arch string `json:",omitempty"`
	Os   string `json:",omitempty"`
	//NEW 0.5.5 - implemented 0.5.7
	BuildConstraints string `json:",omitempty"`

	//0.7.x experimental option - only 0.7.3. Removed 0.7.4
	//PrependCurrentEnv string `json:",omitempty"`

	//0.9 changed from struct to ResourcesInclude & ResourcesExclude
	ResourcesInclude string `json:",omitempty"`
	ResourcesExclude string `json:",omitempty"`

	//0.10.x source exclusion
	MainDirsExclude string `json:",omitempty"`
	//0.13.x source exclusion (source dirs)
	SourceDirsExclude string `json:",omitempty"`

	PackageVersion string `json:",omitempty"`
	BranchName     string `json:",omitempty"`
	PrereleaseInfo string `json:",omitempty"`
	BuildName      string `json:",omitempty"`

	//0.2.0 Verbosity replaces Verbose bool
	Verbosity string `json:",omitempty"` // none/debug/

	//TaskSettings map[string]map[string]interface{}
	TaskSettings map[string]map[string]interface{} `json:",omitempty"`

	//DEPRECATED (since v0.9. See GoxcConfigVersion)
	FormatVersion string `json:",omitempty"`

	//v0.9, to replace 'FormatVersion'
	GoxcConfigVersion string `json:"ConfigVersion,omitempty"`

	BuildSettings *BuildSettings `json:",omitempty"`

	GoRoot string `json:"-"` //only settable by a flag

	//PreferredGoVersion string `json:",omitempty"` //try to use a go version...

	Env []string `json:",omitempty"`