docs(packaging): add the 6.1.0 release entry
All checks were successful
Flatpak / flatpak (push) Successful in 13m51s
All checks were successful
Flatpak / flatpak (push) Successful in 13m51s
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.
This commit is contained in:
parent
79b24a93b8
commit
ff3cc20e70
1 changed files with 17 additions and 0 deletions
|
|
@ -25,6 +25,23 @@
|
|||
</provides>
|
||||
<content_rating type="oars-1.1"/>
|
||||
<releases>
|
||||
<release version="6.1.0" date="2026-11-09">
|
||||
<description>
|
||||
<p>New</p>
|
||||
<ul>
|
||||
<li>An executable can be packaged as a Flatpak of its own, so it runs outside crafter-build's sandbox: with <code>cfg.packaging = Packaging::Flatpak</code>, or <code>--packaging=flatpak</code> for one build of a <code>project.cpp</code> that calls <code>ApplyStandardArgs</code>, its bin directory holds the app's <code>files/</code>, with the program, the libc++, libc++abi and libunwind it links, and anything else it needs from the libraries it is built on, which <code>-r</code> runs it against. <code>cfg.flatpak</code> 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 <code>/app/share</code>. 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.</li>
|
||||
<li><code>crafter-build install</code> builds the project and installs its Flatpak for the current user, and <code>crafter-build bundle</code> builds it into a single <code>.flatpak</code> file, which <code>flatpak install --user</code> installs elsewhere. Both make the app with the host's <code>flatpak build-finish</code>, 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. <code>cfg.flatpak.modules</code> names flatpak-builder module files for what the app needs in <code>/app</code> 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.</li>
|
||||
<li>The Flatpak has the <code>org.freedesktop.Flatpak</code> permission, for <code>install</code> and <code>bundle</code> to run the host's flatpak and flatpak-builder, which <code>flatpak update</code> 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 <code>project.cpp</code> and the programs <code>-r</code> and <code>test</code> start included, run commands on the host, which <code>--filesystem=host</code> already let them arrange by writing files the host runs, such as <code>~/.bashrc</code>.</li>
|
||||
</ul>
|
||||
<p>Fixes</p>
|
||||
<ul>
|
||||
<li>On Linux, a program built on a shared library (<code>ConfigurationType::LibraryDynamic</code>) starts: its link records where the library is. It used to fail at start with <code>cannot open shared object file</code>.</li>
|
||||
<li>A compile no longer takes headers from what a build left in a dependency's <code>bin/</code> or <code>build/</code>: the search for the <code>include/</code> 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 <code>bin</code> or <code>build</code> is no longer found that way; add <code>-I</code> with its directory to the <code>cfg.compileFlags</code> of the projects that include it.</li>
|
||||
<li><code>crafter-build format --check format</code> checks the rules named "format" and writes nothing: it read the second <code>format</code> as the verb again, ran every rule and rewrote the sources. A word repeated after any verb is a glob now, so <code>test test</code> runs the tests matching "test".</li>
|
||||
<li>A wasm test declared with <code>AddTest</code> runs under wasmtime. It used to fail with <code>failed to open wasm module</code>, because the test runner looked for the program without its <code>.wasm</code>.</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="6.0.0" date="2026-11-02">
|
||||
<description>
|
||||
<p>New</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue