desktoprelease

package
v0.3.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelBeta        = "beta"
	ChannelStable      = "stable"
	DistributionOrigin = "https://releases.compozy.com"
)

Variables

This section is empty.

Functions

func AssertDefaultComparator

func AssertDefaultComparator(source string) error

func AssertExactDesktopInventory

func AssertExactDesktopInventory(ctx context.Context, dir, version string) error

func AssertRuntimeInventory

func AssertRuntimeInventory(ctx context.Context, dir string) error

func AssertStrictlyGreater

func AssertStrictlyGreater(candidate, live string) error

func BuildFeeds

func BuildFeeds(ctx context.Context, request BuildRequest) error

func DesktopArtifactNames

func DesktopArtifactNames(version string) []string

func DiscoverSchemaHeads

func DiscoverSchemaHeads(ctx context.Context, repoRoot string) (map[string]uint64, error)

func RuntimeArtifactNames

func RuntimeArtifactNames() map[string]string

func ValidateDesktopChannel

func ValidateDesktopChannel(channel string) error

func ValidateLatestManifest

func ValidateLatestManifest(manifest LatestManifest) error

func ValidateRuntimeManifest

func ValidateRuntimeManifest(manifest RuntimeManifest) error

func ValidateVersion

func ValidateVersion(version string) error

func WriteChannelConfig

func WriteChannelConfig(request ChannelConfigRequest) error

Types

type BuildRequest

type BuildRequest struct {
	Version     string
	PublishedAt time.Time
	DesktopDir  string
	RuntimeDir  string
	RepoRoot    string
	OutputDir   string
	BaseURL     string
}

type ChannelConfigRequest

type ChannelConfigRequest struct {
	Version           string
	Channel           string
	PublicKey         string
	PreviousPublicKey string
	AzureEndpoint     string
	OutputPath        string
}

type LatestManifest

type LatestManifest struct {
	Version   string                     `json:"version"`
	Notes     string                     `json:"notes"`
	PubDate   string                     `json:"pub_date"`
	Platforms map[string]UpdaterPlatform `json:"platforms"`
}

type RuntimeManifest

type RuntimeManifest struct {
	SchemaVersion int                        `json:"schema_version"`
	Version       string                     `json:"version"`
	Platforms     map[string]RuntimePlatform `json:"platforms"`
	SchemaHeads   map[string]uint64          `json:"schema_heads"`
}

type RuntimePlatform

type RuntimePlatform struct {
	URL    string `json:"url"`
	SHA256 string `json:"sha256"`
	Size   int64  `json:"size"`
}

type UpdaterPlatform

type UpdaterPlatform struct {
	Signature string `json:"signature"`
	URL       string `json:"url"`
}

Jump to

Keyboard shortcuts

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