Linux desktop app updates

praeco

Update checks and in-place updates for Linux desktop apps released on GitHub or Forgejo.

praeco is a Rust library and command-line tool that does all the update logic. It asks the release source what is new, works out how the running app was installed, downloads the right file, verifies its SHA-256, installs it and restarts the app. It draws no interface: each app shows its own update pill, “What’s new” sheet and buttons, and calls praeco underneath. On Omarchy, apps register once and omarchy update then brings them all up to date, silently, with the password it already asked for. It is private by default: no telemetry, no account and no identifiers, and it only ever contacts the release source you name. Releases signed with packslip are checked against their signature before anything is installed.

The signing is packslip’s work: the signed format, the verifier praeco embeds and the action that signs praeco’s own releases all come from that project. Thank you to its authors.

Updating with the system

An app registers once and praeco keeps it current even when the app is not running. On Omarchy the system update does the rest: omarchy update also updates every registered app, with the password it already asked for. Like the system updaters it runs beside, it never asks whether to update.

# once: first run, or the package’s post-install step
$ praeco init --name myapp --github you/myapp --exe /usr/bin/myapp
# every registered app, silently (omarchy update runs this for you)
$ praeco update-all
# the way out, when the user turns it off or the app is uninstalled
$ praeco init --remove --name myapp

How an update works

Five steps, and the app decides when each one runs.

  1. Check

    One request to the release source. The answer lists every release newer than the running one, newest first, each with its notes. Repeated checks are cheap.

  2. Detect

    praeco works out how the app was installed from its executable path and the environment, so it knows which file to fetch.

  3. Download and verify

    The matching file goes into a private temporary folder. If the release is signed, the file must match its signed digest; otherwise its SHA-256 must match the checksum published with the release. Either way, without a match nothing is installed.

  4. Install

    The desktop’s own permission dialog appears when the package manager needs root. With no dialog available, praeco falls back to a terminal and sudo.

  5. Restart

    The app is asked to quit, praeco waits for it to exit, then starts the new version with the arguments you give it.

Signed releases, with packslip

A release can carry a packslip: one file, packslip.sigstore.json, signed by the project’s own release workflow and recorded in Sigstore’s public transparency log, so there is no signing key to keep or lose. When praeco finds one on a GitHub release it checks the signature before it downloads anything, then checks the file against the signed digest. The app and the user set up nothing.

None of this is praeco’s invention. The signed format, the Rust crate praeco uses to verify it and the GitHub Action that signs praeco’s own releases are the work of the packslip project. Thank you to its authors and contributors. If you ship an app, sign your releases with it: praeco will start checking them without a change to your app.

Every way an app gets installed

praeco picks the release file that fits how the running app was installed, and the machine’s architecture.

A source build that isn’t under your home folder is left alone: praeco reports it as unsupported, with the reason, and installs nothing.

Check, then install

An app that calls praeco itself needs two commands: ask whether something newer than the running version exists, then install it over the running app and start it again. A Forgejo or Gitea server works the same way as GitHub.

# is there something newer than 1.0.4?
$ praeco check --github you/myapp --current 1.0.4 --json
# install 1.0.5 over the running app, then restart it
$ praeco install --github you/myapp --version 1.0.5 --exe /usr/bin/myapp \
    --restart-pid 4242 --restart -- /usr/bin/myapp --some-arg
# a Forgejo or Gitea server instead of GitHub
$ praeco check --forgejo https://code.example.com owner/repo --current 1.0.4 --json

From any language, or from Rust

An app in C++/Qt, Python, Go or anything else runs the praeco command and reads its JSON. A Rust app can call the library directly, or use the command too. Pass --exe to check and the answer says whether to offer an Install button at all.

$ praeco check --github you/myapp --current 1.0.4 --json
{
  "ok": true,
  "source": "github:you/myapp",
  "current": "1.0.4",
  "latest": "1.0.6",
  "update_available": true,
  "releases": [
    {
      "version": "1.0.6",
      "tag": "v1.0.6",
      "name": "MyApp 1.0.6",
      "published_at": "2026-10-24T09:12:00Z",
      "url": "https://github.com/you/myapp/releases/tag/v1.0.6",
      "prerelease": false,
      "notes": "### Fixed\n- The sidebar no longer flickers."
    }
  ]
}

Errors come back the same way, with a code such as network or rate_limited and a plain message the app can show as is. The release notes are the release body, cut off before its install instructions.

Shipped with the app

Each app ships its own praeco, pinned to a release tag, at <exe dir>/../lib/<app>/praeco. To move to a newer praeco, the app bumps the pin in one of its own releases. The praeco already installed downloads that release, and the new package carries the new praeco. Users never install or update praeco themselves.

Each release has static binaries for x86_64 and aarch64 Linux with their SHA-256 checksums, so the packaging step needs no Rust toolchain. From 0.4.0 the release is also signed, and the binary is bigger because it checks signatures: 7.7 MB on x86_64 and 5.9 MB on aarch64, against 3.2 MB and 2.8 MB before.

# in the app's packaging step
$ base=https://github.com/jrimmer/praeco/releases/download/v0.4.0
$ curl -fLO "$base/praeco-linux-x86_64" -O "$base/praeco-linux-x86_64.sha256" \
    -O "$base/packslip.sigstore.json"
$ sha256sum -c praeco-linux-x86_64.sha256
$ packslip verify packslip.sigstore.json --artifact praeco-linux-x86_64
$ install -Dm755 praeco-linux-x86_64 "$pkgdir/usr/lib/myapp/praeco"

The packslip verify line is the packslip command-line tool, and it is optional: it shows the file was built by praeco’s own release workflow. Building from source works too, with Rust 1.93 and a C compiler (and options=(!lto) under makepkg). Rust apps add the library from crates.io with cargo add praeco and bump its version the same way; default-features = false leaves out the signature check and the 90 or so crates it brings. The README has the details.

What it won’t do

Without a packslip, the checksum comes from the same release as the file, so it catches corruption and a tampered mirror, not a compromised release account. With one, a stolen upload or release token is no longer enough; anyone who can change and run the project’s release workflow can still get a bad release signed.

Read more