linux

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package linux handles Linux-specific build steps — wrapping the raw binary into a Debian binary package (.deb). Pure-Go ar + tar implementation means no system dpkg-deb is required and the package can be cross-built from any host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackageDeb

func PackageDeb(binPath, gateBinPath, appName, appVersion, goarch string) (string, error)

PackageDeb builds a Debian binary package from a freshly compiled Linux binary. Layout inside the .deb:

usr/bin/<app>                                                   (the binary)
usr/bin/<app>-gate                                               (gate sidecar, when shipped)
usr/share/icons/hicolor/256x256/apps/<app>.png                   (brand icon)
usr/share/icons/hicolor/1024x1024/apps/<app>.png                 (brand icon)
usr/share/applications/<app>.desktop                             (.desktop entry)
DEBIAN/control                                                   (package metadata)

.deb format: ar archive containing debian-binary (text "2.0\n"), control.tar.gz (DEBIAN/*), data.tar.gz (the rest of the filesystem).

gateBinPath (optional) is the gate sidecar to ship as `/usr/bin/<app>-gate`. Empty = no sidecar (the main binary still has gate embedded; runtime extracts to the session dir on first hook fire). When non-empty, the sibling lookup picks up the installed gate before any extract — visible to the operator, no per-session extract churn.

Output path is <dir-of-binPath>/<app>-linux-<arch>.deb — kept consistent with mac (.dmg) and windows (.exe) naming so the self-updater can resolve assets with one rule.

Types

This section is empty.

Jump to

Keyboard shortcuts

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