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

Install files

Add extra files under [install.linux.files.<id>], where <id> is any identifier you choose.

KeyTypeDefaultDescription
sourcestringRequiredFile or directory to copy. Relative paths use the project root.
destinationstringRequiredAbsolute virtual package path. Cannot contain ...
recursiveboolfalseCopy a directory recursively. Directory sources are always recursive.
roleenumdatadata, license, copyright, doc or config.
modestringNoneOctal mode with an optional 0o prefix, up to 0o7777. Files only.
formatsarray of stringsAll applicableRestrict the file to the listed formats.

Breadbox removes the leading / from destination when it places the file in the package:

destination = "/usr/share/myapp/data.txt"  ->  usr/share/myapp/data.txt

Roles

RoleEffect
dataOrdinary installed file.
license%license in rpm. Ordinary file elsewhere.
copyright%license in rpm. Ordinary file elsewhere.
doc%doc in rpm. Ordinary file elsewhere.
configDEBIAN/conffiles for deb, %config(noreplace) for rpm, backup=() for pkg.

In rpm, data files installed below /usr/share/licenses/ are also written as %license.

Examples

[install.linux.files.manual]
source = "docs/manual.pdf"
destination = "/usr/share/doc/myapp/manual.pdf"
role = "doc"
mode = "0644"
formats = ["deb", "rpm"]

[install.linux.files.resources]
source = "assets/resources"
destination = "/usr/share/myapp/resources"
recursive = true

When you omit formats, Breadbox includes the file in every selected format that supports Linux install files. When you set it, only the listed formats receive the file.

Extra desktop files

Breadbox generates one main desktop entry at /usr/share/applications/<linux.identifier>.desktop for Linux package formats. Use install files to add other .desktop files:

[install.linux.files.settings_desktop]
source = "assets/myapp-settings.desktop"
destination = "/usr/share/applications/myapp-settings.desktop"

Install files are staged after the generated entry, so an install file with the same destination replaces it. Breadbox does not validate desktop files supplied this way. For AppImage builds, Breadbox passes that path to linuxdeploy. If you replace the generated entry, keep its Icon value aligned with [linux.desktop].