”there’s no such file or app”
app.executable is looked up inside files.source, not next to bach.toml.
Check:
- Open the folder named after “in” in the message. Is your
.exethere? - Is the name exactly right?
hello-notes.exeis notHelloNotes.exe. - Does an
excludepattern match it?
- Build your app first, if the folder is empty or old.
- If the program is in a subfolder, include it:
executable = "bin/hello.exe". - Set
files.sourceto the folder your build tool really writes to. For common tools, see Prepare your build folder.
”files.source is …, but … isn’t a folder”
The folder doesn’t exist relative tobach.toml. Paths are relative to the folder that holds bach.toml, not your current terminal folder. Check the spelling and build your app.
My installer is missing files
Check the list:- It isn’t inside
files.source. Bach only packages that one folder. Copy it in as part of your build. - An
excludepattern matches it. A pattern without/, such asconfig.json, matches that name in every folder. - It belongs to a component the user didn’t tick.
bach checkshows the component id next to the file.
My app works from the build folder but not when installed
Your app may look for files relative to the current folder instead of the folder it’s in. Shortcuts and the Open button start it, and the current folder may not be what you expect. Load files relative to your program’s location. It may also need a runtime that your development computer has. See Install problems.Check that it’s fixed
bach check lists the file. Install on a test computer or with bach test, and look in the install folder.