-
crafter-build 6.1.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 13m51sreleased this
2026-11-09 01:14:48 +00:00 | 53 commits to master since this releaseNew
- An executable can be packaged as a Flatpak of its own, so it runs outside crafter-build's sandbox: with
cfg.packaging = Packaging::Flatpak, or--packaging=flatpakfor one build of aproject.cppthat callsApplyStandardArgs, its bin directory holds the app'sfiles/, with the program, the libc++, libc++abi and libunwind it links, and anything else it needs from the libraries it is built on, which-rruns it against.cfg.flatpaksets 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 installbuilds the project and installs its Flatpak for the current user, andcrafter-build bundlebuilds it into a single.flatpakfile, whichflatpak install --userinstalls elsewhere. Both make the app with the host'sflatpak 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.modulesnames flatpak-builder module files for what the app needs in/appbesides the program; with any, the host's flatpak-builder makes the app and copies the program in last, so it is not compiled again.- The Flatpak has the
org.freedesktop.Flatpakpermission, forinstallandbundleto run the host's flatpak and flatpak-builder, whichflatpak updatelists 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, aproject.cppand the programs-randteststart included, run commands on the host, which--filesystem=hostalready let them arrange by writing files the host runs, such as~/.bashrc.
Fixes
- On Linux, a program built on a shared library (
ConfigurationType::LibraryDynamic) starts: its link records where the library is. It used to fail at start withcannot open shared object file. - A compile no longer takes headers from what a build left in a dependency's
bin/orbuild/: the search for theinclude/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 namedbinorbuildis no longer found that way; add-Iwith its directory to thecfg.compileFlagsof the projects that include it. crafter-build format --check formatchecks the rules named "format" and writes nothing: it read the secondformatas the verb again, ran every rule and rewrote the sources. A word repeated after any verb is a glob now, sotest testruns the tests matching "test".- A wasm test declared with
AddTestruns under wasmtime. It used to fail withfailed to open wasm module, because the test runner looked for the program without its.wasm.
Downloads
- An executable can be packaged as a Flatpak of its own, so it runs outside crafter-build's sandbox: with