Updates and releases
How an update reaches people
- You push a version tag such as
v0.2.0. - GitHub Actions tests, packs the folders into
hissu-tools.tar.gz, signs it with your private key and publishes a release. - Each installed copy asks GitHub once a day for the newest release (a few minutes after login). If it is newer, a notice appears.
- On Update, the app downloads the archive, checks the signature against the public key it already has, checks the version inside, and runs the new installer.
- The person logs out and back in.
Anything you add is included. The archive holds the whole app/, core/, adapters/ and packaging/ folders. A new setting gets its default for existing people. A new tool added to core/modules.js appears switched on, with its default shortcut.
Safety. A damaged archive, a stranger's signature, or an old release posing as a new one is refused and nothing changes. Files are copied beside the old install and swapped at the end.
Set up once
packaging/make-key.sh # makes the key and records the public half
gh secret set SIGNING_KEY < ~/.config/hissu-tools-release/signing-key
git add packaging/allowed_signers # commit and push thisBack up the private key. Never commit it. If it is lost or leaked, people must reinstall by hand to trust a new one. Installed copies only accept updates signed by a key listed in packaging/allowed_signers.
Every release
- Raise
VERSIONincore/version.js(three numbers, such as0.2.0). - In
CHANGELOG.md, rename## Unreleasedto## 0.2.0. - Run
tests/run.sh, and try it on a real desktop. - Commit, then
git tag v0.2.0 && git push origin main v0.2.0. - Check the release has
hissu-tools.tar.gz,hissu-tools.tar.gz.sigandinstall.sh.
Update checks only work once the repository is public.
The website
The install command on the website points at the latest release. Check that the website lists only tools that exist before you publish.
Limits
- A release needs a new GNOME version added in
metadata.jsonandpackaging/install.shbefore it installs there. After a GNOME upgrade, the old extension stays off until then. - No automatic install: the person always presses Update.
- Packages are not published for apt or Flatpak; install with the one-line command.