plistgen

package
Version: v2.110.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindSoftwarePackage = "software-package"
	KindSoftware        = "software"
	KindDisplayImage    = "display-image"
	KindFullSizeImage   = "full-size-image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplePlistAsset

type ApplePlistAsset struct {
	Kind       string   `plist:"kind"`
	URL        string   `plist:"url"`
	MD5        string   `plist:"md5,omitempty"`
	MD5Size    int      `plist:"md5-size,omitempty"`
	MD5s       []string `plist:"md5s,omitempty"`
	NeedsShine bool     `plist:"needs-shine,omitempty"`
}

type ApplePlistItem

type ApplePlistItem struct {
	Assets   []*ApplePlistAsset  `plist:"assets"`
	Metadata *ApplePlistMetadata `plist:"metadata"`
}

type ApplePlistMetadata

type ApplePlistMetadata struct {
	BundleIdentifier string `plist:"bundle-identifier"`
	BundleVersion    string `plist:"bundle-version"`
	Kind             string `plist:"kind"`
	Title            string `plist:"title"`
	Subtitle         string `plist:"subtitle,omitempty"`
}

type ApplePlistRelease

type ApplePlistRelease struct {
	Items []*ApplePlistItem `plist:"items"`
}

func Release

func Release(bundleID, ipaURL string) ApplePlistRelease

func (*ApplePlistRelease) Marshal

func (r *ApplePlistRelease) Marshal() ([]byte, error)

func (*ApplePlistRelease) SetDisplayImage

func (r *ApplePlistRelease) SetDisplayImage(url string, needsShine bool)

func (*ApplePlistRelease) SetFullSizeImage

func (r *ApplePlistRelease) SetFullSizeImage(url string, needsShine bool)

func (*ApplePlistRelease) SetSubtitle

func (r *ApplePlistRelease) SetSubtitle(subtitle string)

func (*ApplePlistRelease) SetTitle

func (r *ApplePlistRelease) SetTitle(title string)

func (*ApplePlistRelease) SetVersion

func (r *ApplePlistRelease) SetVersion(version string)

Source Files

Jump to

Keyboard shortcuts

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