New
+cfg.packaging = Packaging::Flatpak, or --packaging=flatpak for one build of a project.cpp that calls ApplyStandardArgs, its bin directory holds the app's files/, with the program, the libc++, libc++abi and libunwind it links, and anything else it needs from the libraries it is built on, which -r runs it against. cfg.flatpak sets the app-id, the runtime (the Platform or the Sdk, at the branch crafter-build runs on), the sandbox's permissions as finish-args, a desktop entry, metainfo, icons and data under /app/share. A library's permissions reach every program built on it. Without packaging, an executable's bin directory holds what it did before. The README's new "Flatpak output" section has the details.crafter-build install builds the project and installs its Flatpak for the current user, and crafter-build bundle builds it into a single .flatpak file, which flatpak install --user installs elsewhere. Both make the app with the host's flatpak build-finish, which writes its metadata and what the host sees of it by flatpak's own rules and refuses a permission flatpak does not have, and print the permissions, with where each came from. cfg.flatpak.modules names flatpak-builder module files for what the app needs in /app besides the program; with any, the host's flatpak-builder makes the app and copies the program in last, so it is not compiled again.org.freedesktop.Flatpak permission, for install and bundle to run the host's flatpak and flatpak-builder, which flatpak update lists among the app's new permissions before it asks to proceed. Nothing else in crafter-build uses it. It lets anything running in the sandbox, a project.cpp and the programs -r and test start included, run commands on the host, which --filesystem=host already let them arrange by writing files the host runs, such as ~/.bashrc.Fixes
+ConfigurationType::LibraryDynamic) starts: its link records where the library is. It used to fail at start with cannot open shared object file.bin/ or build/: the search for the include/ directories in a dependency's tree went into them as well, so the headers of a flatpak-builder or CMake tree there came before the system's. A header kept under a directory named bin or build is no longer found that way; add -I with its directory to the cfg.compileFlags of the projects that include it.crafter-build format --check format checks the rules named "format" and writes nothing: it read the second format as the verb again, ran every rule and rewrote the sources. A word repeated after any verb is a glob now, so test test runs the tests matching "test".AddTest runs under wasmtime. It used to fail with failed to open wasm module, because the test runner looked for the program without its .wasm.New