What a build folder is
When you build an app, your tools write the finished program into a folder. That folder holds the.exe people run, and usually other files it needs while running: libraries (.dll files), images, sounds, data files. You could copy the whole folder to another computer and the app would start.
That’s the folder you give to Bach:
What should be in it
Everything inside the build folder goes into your installer, including subfolders. So check that:- the program named in
app.executableis in it - every file the program needs at run time is in it
- nothing private or unnecessary is in it
files.source at your whole project folder. Bach stops the build if it finds files that look like secrets, such as .env, private keys or access tokens, but it can’t recognize every private file. Choose which files to include explains how to leave files out.
Two rules: the folder can’t contain symbolic links, and it can’t contain a file called uninstall.exe at the top, because Bach adds its own uninstaller with that name.
Test the folder before you package it
Copy the folder somewhere else, or better, to another computer or a virtual machine that doesn’t have your development tools, and start the program from there. If it doesn’t start, the installer won’t fix that. A common reason is a missing runtime, such as the Microsoft Visual C++ runtime. See Check that your app’s requirements are installed.Where common tools put it
bach init looks at your project files and fills in the folder for you in these cases:
These are starting guesses. Open the folder and make sure your app is really there.
For Flutter and Qt,
bach init also adds a requirement for the Visual C++ runtime; for Wails, one for WebView2. Delete the requirement if your build doesn’t need it. For Qt, run windeployqt first so the Qt libraries are copied next to your program.
For anything else, such as a Go or C++ program, create a folder, copy the program and its files into it, and set files.source to that folder.