Skip to main content
[updates] lets installed copies update themselves, and makes bach build write the update feed latest.json. Walkthrough: Automatic updates.
bach.toml
bach.toml
Either github or feed is required, and app.version must be a comparable version such as 1.4.0.

github

"owner/repo". Updates come from that public repository’s releases. Sets feed to https://github.com/owner/repo/releases/latest/download/latest.json and download_url to https://github.com/owner/repo/releases/download/v{version}/{file}, and names files the way GitHub serves them.

feed

https link of the update feed. Default from github. Written into every setup file; installed apps read it.

download_url

https link where the setup file will be. {file} is the file name, {version} the version. Without it (and without github), bach build writes no feed and warns; write it later with bach feed <file> --url <link>.

auto

Option value, default true. Whether installed apps update in the background: true (offered, ticked), false (offered, unticked), "always", "never". With installer.scope = "machine" it must be left out or "never". When on, setup creates a per-user scheduled task Bach\<app id> that runs uninstall.exe --auto-update every four hours (spread by up to 20 minutes), and after missed runs.

mirrors

List of https links to more feeds, used when feed can’t be reached. No duplicates, and not feed itself. See Mirrors.

public_key

64 hex characters from bach feed-key. Installed apps then accept only feed entries signed with the private key. See Protect your updates.

next_public_key

A second trusted key, for changing keys. Needs public_key and must differ from it.

max_age_days

1 to 3650, default no limit (0 also means none). Signed entries older than this are ignored. Needs public_key.

signer

Certificate name or organization, such as "Your Company Inc.", or the full subject (CN=..., O=..., C=...). Downloaded updates must have a valid Authenticode signature from this publisher. On a Mac, the update needs a Developer ID Application signature that Apple issued, with that name. Up to 300 characters. See Require your code signature.

beta_feed

https link of a second feed for beta versions. Must differ from feed and the mirrors.

What the installed app gets

uninstall.exe accepts --check-update, --download-update, --apply-update, --update, --auto-update and --channel. See Uninstaller options. With [access], the key is sent with update requests to the feed’s host. Patches and rollouts are set per release with bach feed and bach build --patch-from, not here.