1 Publishing
liquibyte edited this page 2026-11-19 16:23:32 -06:00

Publishing

Sending the packages to folders, signed apt repositories and Forgejo or Gitea package registries, and building many projects at once with Build Several.

Publishing

Build > Publish (Control+P) sends the packages of the last build to each place the Publish page ticks, one step after another in the Build Log. The places are set up once, on the Publishing Places page of Preferences (the Publish page's Publishing Places button opens it there), and every project can use them. They are kept in ~/.config/debwright/publish.

The Publishing Places page of Preferences

The Publishing Places page of Preferences: a signed apt repository, set up once for every project.

Kind What Publish does there
Folder Copies each .deb into the folder. Of each release's packages, only the newest (Keep) stay.
Apt repository Keeps a real apt repository in the folder, with a section for each release (dists/daedalus, dists/bookworm), its packages in pool/<release>. Debwright writes the index files itself (Packages, Packages.gz, Release, with SHA-256 sums), and gpg signs them (InRelease, Release.gpg) with the key you name, or your first one. gpg may ask for the key's passphrase. Its public key is written beside them as key.gpg, for users. Users then get your updates with apt upgrade.
Package registry A Forgejo or Gitea server's Debian package registry: each package is uploaded to the release's distribution in it (or to the one you name, such as stable), a package of the same version there is replaced, and older versions of the same release beyond Keep are deleted. Other releases' packages are left alone. The access token (with write:package) is read from the token file, and curl gets it from a file only you can read, never on its command line.

The settings of a place:

Setting What it is
Name How the Publish page shows it.
Kind Folder, apt repository, or package registry.
Folder A folder's or a repository's place on this machine, as a full path.
Address A repository's web address, for the line users add to apt; a registry's server, such as https://git.example.org.
Owner A registry's user or organization that owns the packages.
Token file A registry's access token, in a file only you can read.
Key The gpg key that signs a repository. Empty: your first secret key.
Upload A folder or a repository is copied to user@host:/path after each publish, with rsync (--delete, so the server holds what the folder holds), or scp when rsync isn't installed. Empty: no upload.
Distribution For a registry: one distribution for every release. Empty: each release's own name.
Keep How many versions of a package are kept for each release.

Add makes a place and Remove deletes the chosen one. Under the settings, the page says which ones a kind uses, and what is wrong with a place; OK doesn't close Preferences while a place is wrong. OK saves the places; Cancel puts back what was there.

Build Several

Build > Build Several builds many projects, one after another, such as every program you publish. Its list (kept in ~/.config/debwright/several) is put in the order the projects need each other: a project that makes a package another one names in its Build dependencies, Depends or Pre-Depends comes first, and its row says which it comes after. Add... chooses a project file; Add Open Project adds the one in the window; Remove takes the chosen one off.

Build Several after Build All

Build Several after Build All: photosort depends on wordtally, so wordtally was built first.

Build All builds each project as its own Build would, for its releases, in the main window's Build Log, and with Publish each project after its build ticked, publishes it after. Each row says how its project went. A project that fails stops the ones after it; Stop stops the one that builds.