> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# [updates]: automatic updates

> Every [updates] setting with defaults: github, feed, download_url, auto, mirrors, public keys, signer, beta feed and maximum age of feed entries.

`[updates]` lets installed copies update themselves, and makes `bach build` write the update feed `latest.json`. Walkthrough: [Automatic updates](/docs/guides/automatic-updates.md).

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[updates]
github = "your-name/hello-notes"
```

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[updates]
feed = "https://example.com/hello-notes/latest.json"
download_url = "https://example.com/hello-notes/{file}"
```

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](/docs/guides/update-hosting.md#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](/docs/guides/update-security.md#sign-the-update-feed).

## `next_public_key`

A second trusted key, for [changing keys](/docs/guides/update-security.md#change-the-signing-key). 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](/docs/guides/update-security.md#require-your-code-signature).

## `beta_feed`

`https` link of a second feed for [beta versions](/docs/guides/patches-and-rollouts.md#offer-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](/docs/reference/setup/uninstaller.md).

With [`[access]`](/docs/reference/config/access), the key is sent with update requests to the feed's host. Patches and rollouts are set per release with [`bach feed`](/docs/reference/cli/feed) and `bach build --patch-from`, not here.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.