[signing] tells Bach which program signs your setup files. It does nothing until you build with --sign. Walkthrough: Sign your setup file.
bach.toml
In
arguments, {file} is the file to sign (added at the end if absent) and {env:NAME} an environment variable, so secrets stay out of the file.
When it runs
BACH_SIGN=1 does the same as --sign. A build with [signing] but without --sign says the files weren’t signed. --sign without [signing] is an error.
With --sign, Bach signs every setup file it writes (including the online installer and patches) before writing the update feed. It prints the command with {env:NAME} not expanded. If the signer fails, the build fails. With updates.signer set, Bach also checks that the certificate matches. For a Mac build it checks the Setup app instead, see Protect your updates.
Unsigned programs inside
With[signing] present, bach check and bach build warn when programs or libraries in your files aren’t signed, naming the first three.
A cloud signing service
bach.toml
osslsigncode. The Mac build uses [macos.signing] instead.