flatpak

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package flatpak implements the Pipe interface providing Flatpak bindings.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoFlatpakBuilder = errors.New("flatpak-builder not present in $PATH")
	ErrNoAppID          = errors.New("no app_id provided for flatpak")
	ErrNoRuntime        = errors.New("no runtime provided for flatpak")
	ErrNoRuntimeVersion = errors.New("no runtime_version provided for flatpak")
	ErrNoSDK            = errors.New("no sdk provided for flatpak")
)

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	ID             string           `json:"id"`
	Runtime        string           `json:"runtime"`
	RuntimeVersion string           `json:"runtime-version"`
	SDK            string           `json:"sdk"`
	Command        string           `json:"command"`
	FinishArgs     []string         `json:"finish-args,omitempty"`
	Modules        []ManifestModule `json:"modules"`
}

Manifest is the Flatpak manifest written to disk.

type ManifestModule

type ManifestModule struct {
	Name          string           `json:"name"`
	BuildSystem   string           `json:"buildsystem"`
	BuildCommands []string         `json:"build-commands"`
	Sources       []ManifestSource `json:"sources"`
}

ManifestModule is a module entry in the Flatpak manifest.

type ManifestSource

type ManifestSource struct {
	Type         string `json:"type"`
	Path         string `json:"path"`
	DestFilename string `json:"dest-filename,omitempty"`
}

ManifestSource is a source entry for a Flatpak module.

type Pipe

type Pipe struct{}

Pipe for Flatpak packaging.

func (Pipe) ContinueOnError

func (Pipe) ContinueOnError() bool

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults.

func (Pipe) Dependencies

func (Pipe) Dependencies(*context.Context) []string

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe.

func (Pipe) Skip

func (Pipe) Skip(ctx *context.Context) bool

func (Pipe) String

func (Pipe) String() string

Jump to

Keyboard shortcuts

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