pkg

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePKG

func CreatePKG(config Config) error

Types

type Choice

type Choice struct {
	ID       string // Unique identifier for the choice.
	Visible  bool   // Visibility of the choice in the installer UI.
	PkgRefID string // Package reference ID associated with the choice.
}

Choice represents an individual choice in the installer.

type Config

type Config struct {
	AppPath         string
	OutputPath      string
	Version         string
	Identifier      string
	InstallLocation string
	LicensePaths    map[string]string
}

type DistributionBuilder

type DistributionBuilder struct {
	Title        string   // Title of the installer.
	Organization string   // Organization name.
	Identifier   string   // Unique identifier for the installer.
	Version      string   // Version of the installer.
	MinOSVersion string   // Minimum OS version required for the installer.
	LicenseFile  string   // Path to the license file.
	Choices      []Choice // List of choices available in the installer.
}

DistributionBuilder is used to build the distribution XML for an installer.

func NewDistributionBuilder

func NewDistributionBuilder() *DistributionBuilder

func (*DistributionBuilder) AddChoice

func (b *DistributionBuilder) AddChoice(id string, visible bool, pkgRefID string)

func (*DistributionBuilder) AddLicense

func (b *DistributionBuilder) AddLicense(file string)

func (*DistributionBuilder) Build

func (b *DistributionBuilder) Build() string

Jump to

Keyboard shortcuts

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