productbuild

package
v0.0.0-...-6278b43 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: BSL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	ID          string `xml:"id,attr,omitempty" json:"id,omitempty"`
	Title       string `xml:"title,attr,omitempty" json:"title,omitempty"`
	Description string `xml:"description,attr,omitempty" json:"description,omitempty"`

	PkgRefs []PkgRef `xml:"pkg-ref,omitempty" json:"pkgRef,omitempty"`
}

type ChoicesOutline

type ChoicesOutline struct {
	Lines []Line `xml:"line" json:"line,omitempty"`
}

type Command

type Command struct {
	Distribution InstallerGuiScript `json:"distribution"`
	ResourcePath string             `json:"resourcePath"`
	PackagePath  string             `json:"packagePath"`
	OutputFile   string             `json:"outputFile"`
	// contains filtered or unexported fields
}

func (Command) GetCombinedOutput

func (c Command) GetCombinedOutput() (string, error)

func (*Command) Run

func (c *Command) Run() error

func (*Command) SetExecutable

func (c *Command) SetExecutable(cmd string, args []string)

type Conclusion

type Conclusion struct {
	File string `xml:"file,attr,omitempty" json:"file,omitempty"`
}

type InstallerGuiScript

type InstallerGuiScript struct {
	XMLName xml.Name `xml:"installer-gui-script" json:"-"`

	AuthoringTool        string `xml:"authoringTool,attr,omitempty" json:"authoringTool,omitempty"`
	AuthoringToolVersion string `xml:"authoringToolVersion,attr,omitempty" json:"authoringToolVersion,omitempty"`
	AuthoringToolBuild   string `xml:"authoringToolBuild,attr,omitempty" json:"authoringToolBuild,omitempty"`
	MinSpecVersion       string `xml:"minSpecVersion,attr,omitempty" json:"minSpecVersion,omitempty"`

	Title      string     `xml:"title,omitempty" json:"title,omitempty"`
	License    License    `xml:"license,omitempty" json:"license,omitempty"`
	Welcome    Welcome    `xml:"welcome,omitempty" json:"welcome,omitempty"`
	Conclusion Conclusion `xml:"conclusion,omitempty" json:"conclusion,omitempty"`
	Options    Options    `xml:"options,omitempty" json:"options,omitempty"`

	ChoicesOutline ChoicesOutline `xml:"choices-outline" json:"choicesOutline,omitempty"`
	Choices        []Choice       `xml:"choice" json:"choice,omitempty"`
	PkgRefs        []PkgRef       `xml:"pkg-ref" json:"pkgRef,omitempty"`
}

func NewInstallerGuiScript

func NewInstallerGuiScript(name string) InstallerGuiScript

func ReadInstallerGuiScriptFile

func ReadInstallerGuiScriptFile(path string) (*InstallerGuiScript, error)

func (InstallerGuiScript) WriteFile

func (s InstallerGuiScript) WriteFile(w io.Writer) error

type License

type License struct {
	File string `xml:"file,attr,omitempty" json:"file,omitempty"`
}

type Line

type Line struct {
	Choice string  `xml:"choice,attr,omitempty" json:"choice,omitempty"`
	Lines  []*Line `xml:"line,omitempty" json:"lines,omitempty"`
}

type Options

type Options struct {
	Customize         string `xml:"customize,attr,omitempty" json:"customize,omitempty"`
	RequireScripts    string `xml:"require-scripts,attr,omitempty" json:"requireScripts,omitempty"`
	HostArchitectures string `xml:"hostArchitectures,attr,omitempty" json:"hostArchitectures,omitempty"`
}

type PkgRef

type PkgRef struct {
	ID            string `xml:"id,attr,omitempty" json:"id,omitempty"`
	Version       string `xml:"version,attr,omitempty" json:"version,omitempty"`
	Auth          string `xml:"auth,attr,omitempty" json:"auth,omitempty"`
	InstallKBytes string `xml:"installKBytes,attr,omitempty" json:"installKBytes,omitempty"`
}

type Welcome

type Welcome struct {
	File string `xml:"file,attr,omitempty" json:"file,omitempty"`
}

Jump to

Keyboard shortcuts

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