Skip to main content
bach.toml holds every setting Bach reads. This reference lists each section and setting. If you’re new to the file, read How bach.toml works first.

Required settings

A Windows installer needs these:
bach.toml
A Mac-only app uses [macos] instead of [files]. A file needs at least one of the two.

Sections

The app and its files: The window: Choices and Windows integration (blocks in [[...]] can repeat): Changes to the system: Updates, keys, signing and other builds:

Top-level setting

config_version

Number, optional. The format version of the file. The only value is 1, and leaving it out means the same. Another number stops the build with a message to update Bach or read the changelog.

Rules for every setting

  • Unknown settings are errors. A typo is reported instead of ignored.
  • Paths are relative to bach.toml, unless a setting says it’s relative to the build folder.
  • Errors name the setting, in one sentence, such as installer.theme is "blue"; use "system", "light" or "dark".
  • The file is TOML in UTF-8 (a byte order mark is fine) or UTF-16.

Option values

installer.desktop_shortcut and similar settings take:

Text in one or several languages

Where a setting is text shown to users, such as a component title or a [text] entry, give one text for all languages, or one per language:
Or one per language:
A language that isn’t in installer.languages is an error.

Patterns

Used by files.exclude, component files and others: * matches within one name, ** across folders, ? one character. A pattern without / matches file names anywhere; with / it matches from the top of the build folder. Case doesn’t matter.

Windows paths

Write them in single quotes so backslashes aren’t treated as escapes: '%APPDATA%\Hello Notes'. See also Variables and placeholders.