Home
Ship releases of a desktop app or a CLI to channels, and let installs update themselves.
The Updater hosts the releases of an app and answers the questions an installed copy asks: is there something newer on my channel, and where do I get it. It serves two kinds of app from the same model.
- Electron apps.
electron-updater's generic provider, Squirrel.Mac and Squirrel.Windows read their feeds from it, and each app gets a public download page. - Plain binaries and CLIs. One executable per
<goos>-<goarch>, an install script per app, and a JSON manifest per channel that a self-updater reads. See Distribute a CLI, and Self-update from Go for the Go SDK.
| Where | |
|---|---|
| Console | updater.xeonr.io, scoped to one team |
| An app's feeds | https://updater.xeonr.io/<bucket>/… |
| Publishing | updater-cli, with a team API key |
| The admin API | https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/…, see the API reference |
The model
An app is a storage bucket owned by a team. Its id, the bucket id, is the first segment of every URL the Updater serves for it.
A branch is a line of releases, such as stable or prerelease. Versions
on a branch are semver unless the branch is set to freeform.
A target is a channel on a branch that installs follow. A branch can have
several, so a release can go to canary first and to production later. A
target is public, readable by anyone, or private, readable only with an
updater token that names it.
A release has a version, notes and artifacts. It starts as a draft, is published to one or more targets, and can be rescinded. Rescinding stops it being offered; installs fall back to the previous release on their target.
The console also manages modules, which are add-ons released on their own cadence, and distributions, which are installers and store links shown on the download page.
The API
Everything the console and updater-cli do goes through the admin API, the
xeonr.updater.v1 package served over Connect at https://updater.xeonr.io.
Each method is a POST to /xeonr.updater.v1.UpdaterService/<Method> with a
JSON body and Authorization: Bearer …:
- a person's Xeonr Auth access token for the Updater's audience,
https://updater.xeonr.io, which reaches what their team roles allow; - or a team API key (
xk_…, scopesupdater:apps:read updater:releases:edit), which reaches only the publishing methods.
Authentication lists which methods a key may call and the scopes each needs. Installed apps do not use the admin API: they read the plain-HTTP update protocol.
Guides
Publish from CI
Create an API key, find your bucket id, and publish a release with its artifacts from a pipeline.
The CLI
Every updater-cli command and flag: releases, module releases, distributions.
API keys
What a key can publish, app-wide and bound keys, revoking and rotating.
Authentication
Access tokens, API keys and updater tokens: which methods and targets each reaches.
The update protocol
The feeds electron-updater and the SDK read, the check endpoint, release notes and download tickets.
Distribute a CLI
The install one-liner, pinning a version, private channels, and the manifest a custom updater reads.
Self-update from Go
An upgrade command, an update banner and rollback for a Go CLI, from the Go SDK.
API Reference
The reference is generated from the API definition (xeonr.updater.v1) that
the service serves at https://updater.xeonr.io/api/docs/public.yaml.