linux

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 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, 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/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).

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