bach sign signs a setup file you built earlier, using [signing]. To sign during the build, use bach build --sign instead.
Bach prints the command (with
{env:NAME} not expanded), runs it and reports the result. A missing [signing] section, a program that can’t start or a failing signer is an error.
macOS setup files
For a.dmg, or a .zip that holds a Setup app, with [updates] signer set, Bach also checks the Setup app inside after your signing program ran. Installed copies look at that app, so signing the file around it changes nothing for them. An app they would refuse is an error. On a computer that isn’t a Mac, Bach warns that it couldn’t check. See Protect your updates.
Write the feed again
If your app has[updates], write the feed again afterwards with bach feed, because the file changed.