Updates and releases

How an update reaches people

  1. You push a version tag such as v0.2.0.
  2. GitHub Actions tests, packs the folders into hissu-tools.tar.gz, signs it with your private key and publishes a release.
  3. Each installed copy asks GitHub once a day for the newest release (a few minutes after login). If it is newer, a notice appears.
  4. 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.
  5. 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 this

Back 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

  1. Raise VERSION in core/version.js (three numbers, such as 0.2.0).
  2. In CHANGELOG.md, rename ## Unreleased to ## 0.2.0.
  3. Run tests/run.sh, and try it on a real desktop.
  4. Commit, then git tag v0.2.0 && git push origin main v0.2.0.
  5. Check the release has hissu-tools.tar.gz, hissu-tools.tar.gz.sig and install.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.json and packaging/install.sh before 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.