From ff3cc20e70e2c6a9896cea23d7b7688d58da806a Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Mon, 2 Nov 2026 20:09:48 +0100 Subject: [PATCH] docs(packaging): add the 6.1.0 release entry 6.1.0 lets a program crafter-build builds run outside its sandbox: an executable can be packaged as a Flatpak of its own, installed with `crafter-build install` or bundled into a file with `crafter-build bundle`, with flatpak-builder modules and data under /app/share where it needs them. The Flatpak gains the org.freedesktop.Flatpak permission those two verbs run the host's flatpak with. It also fixes programs built on a shared library on Linux, which did not start, compiles that took headers from what a build left in a dependency's bin/ or build/, `format --check format`, which rewrote the sources, and wasm tests declared with AddTest, which never ran. A minor, by the version rule: the notes have New and Fixes and nothing Breaking. Default still builds an executable as linked, and VariantId and the bin/ layout change for nothing that is not packaged as a Flatpak, but for a build given --packaging=, which moves to other bin/ and build/ directories: the argument was a project arg, hashed into VariantId, and is a standard arg now, for dependencies too. `install`, `bundle` and `--packaging=` were project args until this range made them two verbs and a standard arg, and no sibling project.cpp reads any of them: the only `install` in one is the name of a `run` script, which `run` takes before any verb. `test test`, `lint lint` and `format format` now take the second word as a glob. The include walk leaves out every directory named bin or build now, and that is under Fixes rather than Breaking: those are the names crafter-build gives what it writes, and in the Crafter repositories and the dependencies crafter-build has cloned, the one #include that needs a header found only there is glslang's, in a source its own CMake build compiles, not crafter-build. The permission is listed under New, and `flatpak update` lists it before it asks to proceed. --- .../net.catcrafts.CrafterBuild.metainfo.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml b/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml index 38d6b97..23bbff2 100644 --- a/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml +++ b/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml @@ -25,6 +25,23 @@ + + +

New

+
    +
  • 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=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.
  • +
  • The Flatpak has the 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

+
    +
  • 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 with cannot open shared object file.
  • +
  • A compile no longer takes headers from what a build left in a dependency's 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".
  • +
  • A wasm test declared with 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