Changing the app id
The id (by default the app name) is how Bach recognizes an installation. A new id means a second copy next to the first. If you rename your app, setid to the old name. See How bach.toml works.
Switching between per-user and machine-wide
A differentinstaller.scope also counts as a different installation. Decide before the first release.
Shipping without [updates]
Copies installed without[updates] can never update themselves. If you might want automatic updates, add them from the first release.
Pointing files.source at the project folder
You’d ship source code, caches and maybe secrets. Point it at a build folder, and read thebach check list.
Signing, then forgetting the feed
Signing changes the file, so the checksum inlatest.json no longer matches and updates fail. Use bach build --sign, or run bach feed after signing.
Signing before building
Always build first, then sign. Building writes into the file.Losing the feed signing key
Apps that trust yourpublic_key accept nothing else. Back up feed-key.private somewhere safe, outside Git.
Testing only on your own computer
Your computer has runtimes and tools your users don’t. Test withbach test or a clean virtual machine.
Writing app data into the install folder
Machine-wide installs can’t write there, and the uninstaller keeps files it didn’t install. Use%APPDATA% or %LOCALAPPDATA%.
Using bash syntax in PowerShell
BACH_ACCESS_KEY=... bach build works in bash only. In PowerShell: $env:BACH_ACCESS_KEY = "..."; bach build.