Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Root keys

Most root keys in breadbox.toml are optional. Linux package formats (deb, pkg, rpm and appimage) need identifier, description-long and categories in the [linux] table. See Linux settings.

KeyTypeDefaultRequiredDescription
breadbox-versionstringNoneNoCLI version recorded by init.
app-namestringPackage nameNoApplication name in the desktop file, summaries and info output.
componentstableEmptyNoOptional components. See Components.
linuxtableEmptyFor Linux package formatsShared fields, icons, desktop entries and actions. See Linux settings.
installtableEmptyNoExtra files. See Install files.
formatstableEmptyNoPer-format options. See Format sections.
teststableNoneNoCargo test gate. See Tests.

breadbox-version

init records the installed CLI version. An older recorded version prints a warning. A newer one stops with an error. Versions are three-part semantic versions. A final release sorts after its prereleases, so a config written by breadbox 0.0.1-alpha.1 prints a compatibility warning with breadbox 0.0.1. Build metadata after + is ignored. A missing or blank value prints a compatibility warning. Malformed versions stop with an error. Keep the generated line unless you intend to change that behavior.

app-name

app-name overrides the package name from Cargo.toml in user-facing output. A blank value counts as unset.

Linux fields

The shared Linux fields live in [linux]:

[linux]
identifier = "com.example.myapp"
description-long = "Example desktop application with a small settings window"
categories = "Utility;Development;"
  • identifier becomes the .desktop filename and icon basename. Use one safe filename component: ASCII letters, digits, ., _ or -, not . or ...
  • description-long is used by deb and rpm.
  • categories is the default Categories= value in generated desktop files.

Tests

By default, build does not run tests. Add [tests] to run cargo test before the binary build:

[tests]
mode = "warn"
ModeBehavior
offDo not run tests.
warnRun tests and continue after a failure.
blockRun tests and stop the build on failure.

With no [tests] table, the mode is off. With [tests] but no mode, the mode is warn. Use breadbox build --tests <MODE> to override the config for one build.

Minimal example

app-name = "Example App"

[linux]
identifier = "com.example.myapp"
description-long = "Example desktop application"
categories = "Utility"

This is enough for deb, pkg and rpm, as long as your Cargo.toml contains the fields those formats need. appimage also needs at least one icon and a non-empty Icon= value in the final desktop entry.