[app] says what your app is. Bach uses these values in the install window, in Windows’ list of installed apps and to recognize the app when it’s updated. The section is required.
bach.toml
name
Text, required. The name people see: the window title, the Start menu, shortcuts and Settings › Apps. If id isn’t set, the name is also used as the id, so it may only contain what an id may contain.
version
Text, required. Your app’s version, shown in the window and Settings › Apps. Use dotted numbers such as 1.4.0, optionally with a suffix such as 2.0.0-beta.1. Bach compares versions to detect updates and downgrades.
- A version it can’t compare, such as
latest, only causes a warning, but then every setup file counts as an update and downgrades aren’t detected. - With
[updates], the version must be comparable, or the build fails. --app-versiononbach buildorbach checkreplaces this value for one run. A leadingvis removed.
publisher
Text, required. You or your company. Shown in the window’s footer and in Settings › Apps.
executable
Path, required for Windows. Your program, relative to files.source, such as hello-notes.exe or bin/hello-notes.exe. It must be an .exe and must be in the installed files (not excluded and not part of a component). Shortcuts and the Open button start it.
id
Text, optional. Default: name. Identifies your app on a computer across versions. It names the install folder (unless installer.folder is set) and the registry entry under Settings › Apps.
Allowed: letters, digits, spaces, ., - and _, at most 64 characters, not starting or ending with a space or dot, and not a name Windows reserves such as CON.
description
Text, optional. One line about the app. It’s shown under the heading on the first page (unless [text] install_subtitle replaces it) and as the shortcut’s tooltip.
website
Link, optional. Must start with https:// (or http://). Shown as the support link in Settings › Apps, and on the last page of the window if installer.website_button is true.
icon
Path to a .ico file, optional, relative to bach.toml. It becomes the setup file’s icon and the window’s icon. If installer.logo isn’t set, the largest PNG image inside the .ico is used as the logo. If the .ico has no PNG image, Bach warns and shows its own mark. Include sizes from 16 to 256 pixels.
On macOS and Linux build computers, the icon can’t be applied to a Windows setup file. For the Mac build, use macos.icon.