Skip to Content
Xeonr Developer Docs

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
Consoleupdater.xeonr.io, scoped to one team
An app's feedshttps://updater.xeonr.io/<bucket>/…
Publishingupdater-cli, with a team API key
The admin APIhttps://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_…, scopes updater: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

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.

On this page