deb
deb builds a Debian package. It is available only on Linux and needs dpkg-deb. By default it also
uses dpkg-shlibdeps to find dependencies. See the format overview for tools and
architecture names.
Cargo.toml requirements
| Field | Requirement |
|---|---|
package.name | Converts to a Debian package name. Use letters, digits, ., + and -. _ becomes -. The first character is a letter or digit. The name needs at least two characters. |
package.description | Required and single-line. |
package.authors[0] | Required. Used as maintainer. |
package.repository | Optional single-line homepage. |
Config
Set the shared Linux fields in [linux] as shown in
Linux settings, then add options under [formats.deb].
| Option | Default | Description |
|---|---|---|
extra-depends | [] | Extra Depends: clauses. Entries are added after the results from dpkg-shlibdeps. Keep entries on one line. |
shlibdeps | true | Run dpkg-shlibdeps. Set false to supply all dependencies yourself. This also removes the tool from breadbox doctor. |
[linux]
identifier = "com.example.myapp"
description-long = "Example desktop application"
categories = "Utility"
[formats.deb]
extra-depends = ["ca-certificates", "libc6 (>= 2.34)"]
Install files with role = "config" are listed in DEBIAN/conffiles. See
Install files.
Output
Breadbox converts - in the Cargo version to ~ for Debian. The artifact is named:
<deb-package-name>_<debian-version>_<deb-arch>.deb