FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
#346: the from-source Flatpak includes the CLI and MCP server
txiki73917921200d785
diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.ymlindex bf7c41d3d..3b9d81cd6 100644--- a/.github/workflows/packaging-lint.yml+++ b/.github/workflows/packaging-lint.yml@@ -64,6 +64,11 @@ jobs:assert m["id"] == "ai.storyteller.filmcraft" and m["command"] == "filmcraft", m["id"]for key in ("runtime", "runtime-version", "sdk", "finish-args"):assert src[key] == bundle[key], f"Flatpak manifests disagree on {key}: {src[key]} vs {bundle[key]}"+ # Both install the app and the CLI/MCP server (#346).+ import re+ def programs(m):+ return {p for c in m["modules"][0]["build-commands"] for p in re.findall(r"/app/bin/([\w.-]+)", c)}+ assert programs(src) == programs(bundle) == {"filmcraft", "filmcraft-cli"}, f"Flatpak manifests install {programs(src)} vs {programs(bundle)}"print("Flatpak manifests ok")EOF- name: FreeBSD package layout (stub binaries)diff --git a/docs/releasing.md b/docs/releasing.mdindex 14e699c52..631e2ee96 100644--- a/docs/releasing.md+++ b/docs/releasing.md@@ -138,7 +138,9 @@ runs `filmcraft-cli --version` in the sandbox. Users install it with`flatpak install --user <file>`; the freedesktop runtime comes from Flathub.`packaging/linux/flatpak/ai.storyteller.filmcraft.yml` is the from-source manifest for a Flathubsubmission (its header says how to build it). Both manifests must keep the same runtime and-`finish-args` (packaging-lint checks this).+`finish-args`, and install the same programs: the app and `filmcraft-cli`, which runs the+headless commands and the MCP server in the sandbox+(`flatpak run --command=filmcraft-cli ai.storyteller.filmcraft mcp`). packaging-lint checks this.### FreeBSDdiff --git a/packaging/linux/flatpak/ai.storyteller.filmcraft.yml b/packaging/linux/flatpak/ai.storyteller.filmcraft.ymlindex 3bbc1ecd9..ef8addc75 100644--- a/packaging/linux/flatpak/ai.storyteller.filmcraft.yml+++ b/packaging/linux/flatpak/ai.storyteller.filmcraft.yml@@ -7,6 +7,11 @@# flatpak-builder --user --install --force-clean build-flatpak packaging/linux/flatpak/ai.storyteller.filmcraft.yml# flatpak run ai.storyteller.filmcraft#+# The command-line tool and its MCP server run in the same sandbox, without opening a window:+#+# flatpak run --command=filmcraft-cli ai.storyteller.filmcraft --version+# flatpak run --command=filmcraft-cli ai.storyteller.filmcraft mcp+## For Flathub, replace the `dir` source with a `git` source pinned to a release tag and commit.id: ai.storyteller.filmcraftruntime: org.freedesktop.Platform@@ -49,8 +54,10 @@ modules:CARGO_HOME: /run/build/filmcraft/cargoCARGO_NET_OFFLINE: 'true'build-commands:- - cargo --offline build --release --locked -p filmcraft+ - cargo --offline build --release --locked -p filmcraft -p filmcraft-cli- install -Dm755 target/release/filmcraft /app/bin/filmcraft+ # The headless CLI and its stdio MCP server, as in the release bundle (#346).+ - install -Dm755 target/release/filmcraft-cli /app/bin/filmcraft-cli- install -Dm644 packaging/linux/ai.storyteller.filmcraft.desktop /app/share/applications/ai.storyteller.filmcraft.desktop- install -Dm644 packaging/linux/ai.storyteller.filmcraft.mime.xml /app/share/mime/packages/ai.storyteller.filmcraft.xml- mkdir -p /app/share/icons && cp -R assets/app-icon/hicolor /app/share/icons/