appinstaller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotValid = errors.New("not a valid bundle")

Functions

func Build

func Build(ctx context.Context, c *Config) error

Types

type AppInstaller

type AppInstaller struct {
	XMLName          xml.Name
	Version          string `xml:",attr"`
	URI              string `xml:"Uri,attr"`
	MainBundle       *Package
	MainPackage      *Package
	Dependencies     *Packages
	OptionalPackages *Packages
	RelatedPackages  *Packages
	UpdateSettings   *UpdateSettings
}

func (*AppInstaller) MarshalXML

func (ai *AppInstaller) MarshalXML(enc *xml.Encoder, start xml.StartElement) error

type Bool

type Bool bool

func (*Bool) MarshalText

func (xb *Bool) MarshalText() ([]byte, error)

func (*Bool) UnmarshalText

func (xb *Bool) UnmarshalText([]byte) error

type Config

type Config struct {
	OnLaunch                  *OnLaunchConfig
	AutomaticBackgroundTask   bool
	ForceUpdateFromAnyVersion bool

	Source         *source.Source
	Target         target.Target
	Version        string
	Prerelease     bool
	UploadPackages bool
}

type OnLaunch

type OnLaunch struct {
	HoursBetweenUpdateChecks int  `xml:",attr,omitempty"`
	ShowPrompt               bool `xml:",attr,omitempty"`
	UpdateBlocksActivation   bool `xml:",attr,omitempty"`
}

type OnLaunchConfig

type OnLaunchConfig struct {
	HoursBetweenUpdateChecks int
	ShowPrompt               bool
	UpdateBlocksActivation   bool
}

type Package

type Package struct {
	Name                  string `xml:",attr"`
	Publisher             string `xml:",attr"`
	Version               string `xml:",attr"`
	ProcessorArchitecture string `xml:",attr,omitempty"`
	URI                   string `xml:"Uri,attr"`
}

type Packages

type Packages struct {
	Bundle  []*Package
	Package []*Package
}

type UpdateSettings

type UpdateSettings struct {
	OnLaunch                  *OnLaunch
	AutomaticBackgroundTask   Bool `xml:",omitempty"`
	ForceUpdateFromAnyVersion bool `xml:",omitempty"`
}

Jump to

Keyboard shortcuts

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