Maintainer: Thomas Leonard
License: GNU Lesser General Public License
Zero Install feed: https://apps.0install.net/0install/0publish.xml
Making a new release of your software can be time consuming and error-prone, so you'll probably want to script as much as possible of it. The 0publish command provides a set of useful transformations for feed files which you can integrate into your release scripts.
However, 0publish is somewhat deprecated:
- If you're looking for a graphical environment instead, see 0publish-gui in the packaging guide.
- To add a new version of a program to a feed, consider using 0template to generate the XML for the new version and 0repo to add it to the master feed.
- 0release provides a more complete solution for managing releases (0release uses 0publish or 0repo internally, but also handles many other aspects of making releases for you).
0publish edits feed files in place. It loads the file, transforms it in some way (such as setting the release date, or adding a new implementation) and then writes it back out again. If the input file was signed, it will resign it when saving with the same key by default. You can also use it to add a signature, or to change the signing key.
You can create an app for
0publish in the usual way:
0install add 0publish https://apps.0install.net/0install/0publish.xml
0publish [options] feed.xml
- Show help message and exit.
- Add the implementation(s) in
FEEDto this one, putting them in the most sensible
<group>(so as to minimise duplication of requirements, etc).
- add missing MIME-type attributes.
- Add a new implementation (use with
- Change a local implementation to one with a digest and an archive.
- Create a new feed file (if non-existent) without prompting.
- Add extra digests using the given algorithm.
- Edit with
$EDITOR. This is useful if the file is signed, since it removes the signature at the start and resigns at the end. It also checks that the new feed is valid before overwriting the old copy.
- Add a GPG signature block. Deprecated; use
- Key to use for signing (if you have more than one, or if you want to resign with a different key).
- Deprecated; use
- Select the algorithm to use for manifest digests.
- Set the implementation ID. Note: it's usually easier to use the
--archive-*options, since they calculate the digest for you.
- Set the main executable.
- Set the architecture.
- Set the release date. Typically used as
0publish --set-released $(date +%F) feed.xml, which sets today's date.
- Set the stability rating.
- Set the version number (used when making a release from CVS).
- Mark the current testing version as stable.
- Select version to use in
- Add an XML signature block. All remote feeds must be signed.
- Remove any signature.
- More verbose output (for debugging).
- Display version information.
gpg: signing failed: secret key not available¶
By default, 0publish tries to sign the new version of the feed using the same key that signed the old version. You will get this error if you don't have this key (e.g. because someone else signed the old version). In that case, use
-k to specify they key you want to use instead.