Skip to main content
← rust.krizaka.comkrizaka.com

Module update

Module update 

Source
Expand description

The update channel of a Mac app: stable by default, beta when the person (or the product’s admin) chooses it.

The channel is data: the product gives the feed address as a template with {channel} (for instance https://github.com/krizaka/verikora/releases/download/desktop-{channel}/latest.json), the kit fills it.

What the kit wires, and what it does not:

  • it stores the channel on the Mac and gives the feed of that channel (feed_url: HTTPS, no credentials, names the channel);
  • it downloads nothing and installs nothing. An app that ships updates registers Tauri’s updater plugin itself, and that plugin checks each download against the pubkey of the app’s plugins.updater configuration;
  • so the kit refuses to start when the app gives a feed, or configures the updater, without a public key (require_pubkey): a feed address alone must never be able to install anything.

Structs§

MissingPubkey
The app configures the updater (or gives a feed) without a public key.
UnknownChannel
The text is not the name of a channel. The text is not repeated: it came from outside.

Enums§

Channel
FeedError
Why a feed template cannot be used.

Functions§

feed_url
The feed of channel: the template with {channel} filled in. The template must be an HTTPS address without credentials and must name the channel, so a beta build never reads the stable feed by mistake.
require_pubkey
The app’s updater configuration (plugins.updater of tauri.conf.json, None when it has none) holds a public key.