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.
| Key | Type | Default | Required | Description |
|---|---|---|---|---|
breadbox-version | string | None | No | CLI version recorded by init. |
app-name | string | Package name | No | Application name in the desktop file, summaries and info output. |
components | table | Empty | No | Optional components. See Components. |
linux | table | Empty | For Linux package formats | Shared fields, icons, desktop entries and actions. See Linux settings. |
install | table | Empty | No | Extra files. See Install files. |
formats | table | Empty | No | Per-format options. See Format sections. |
tests | table | None | No | Cargo 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;"
identifierbecomes the.desktopfilename and icon basename. Use one safe filename component: ASCII letters, digits,.,_or-, not.or...description-longis used bydebandrpm.categoriesis the defaultCategories=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"
| Mode | Behavior |
|---|---|
off | Do not run tests. |
warn | Run tests and continue after a failure. |
block | Run 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.