Install files
Add extra files under [install.linux.files.<id>], where <id> is any identifier you choose.
| Key | Type | Default | Description |
|---|---|---|---|
source | string | Required | File or directory to copy. Relative paths use the project root. |
destination | string | Required | Absolute virtual package path. Cannot contain ... |
recursive | bool | false | Copy a directory recursively. Directory sources are always recursive. |
role | enum | data | data, license, copyright, doc or config. |
mode | string | None | Octal mode with an optional 0o prefix, up to 0o7777. Files only. |
formats | array of strings | All applicable | Restrict 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
| Role | Effect |
|---|---|
data | Ordinary installed file. |
license | %license in rpm. Ordinary file elsewhere. |
copyright | %license in rpm. Ordinary file elsewhere. |
doc | %doc in rpm. Ordinary file elsewhere. |
config | DEBIAN/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].