f67d38b35cc5
ai.storyteller.filmcraft.yml
# Flatpak manifest for FilmCraft, ready for a Flathub submission.
#
# Flatpak builds run offline, so the crate sources must be vendored first. From the repo root:
#
# curl -fsSLO https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/cargo/flatpak-cargo-generator.py
# python3 flatpak-cargo-generator.py Cargo.lock -o packaging/linux/flatpak/cargo-sources.json
# 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.filmcraft
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: filmcraft
finish-args:
# The shared updater inspects and updates this installation via flatpak-spawn --host.
- --talk-name=org.freedesktop.Flatpak
- --filesystem=xdg-data/ArtCraft/versions:ro
# X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails.
- --share=ipc
# Display: Wayland first; X11 only when no Wayland compositor is running.
- --socket=wayland
- --socket=fallback-x11
# Audio playback and the mixer's meters (cpal over ALSA, which the runtime routes to the
# host's PulseAudio or PipeWire server).
- --socket=pulseaudio
# GPU access for the wgpu compositor, scopes and effects (Vulkan, or GL as a fallback).
- --device=dri
# A project refers to its media by absolute path (docs/project-files.md), and the document
# portal only exposes the file it was handed, not the media beside it: a project opened from
# ~/Videos found none of its clips (#107). So, as other video editors do, FilmCraft reads and
# writes the home directory (media, projects, exports, autosave next to the project) and the
# usual mount points of external drives, where footage often lives. Open/Save dialogs still go
# through the file-chooser portal; nothing outside these locations is granted.
- --filesystem=home
- --filesystem=/media
- --filesystem=/run/media
- --filesystem=/mnt
# Network: the update check reaches GitHub. The optional --control server still listens on
# 127.0.0.1 inside the sandbox. Host-wide filesystem access is still not granted.
- --share=network
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
modules:
- name: filmcraft
buildsystem: simple
build-options:
env:
CARGO_HOME: /run/build/filmcraft/cargo
CARGO_NET_OFFLINE: 'true'
build-commands:
- cargo --offline build --release --locked -p filmcraft -p filmcraft-cli
- install -Dm755 target/release/filmcraft /app/bin/filmcraft
- install -Dm644 NOTICE /app/share/doc/filmcraft/NOTICE
# 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/
- >-
version=$(awk '/^\[/{p=($0=="[workspace.package]");next} p&&$1=="version"{gsub(/[" ]/,"",$3);print $3;exit}' Cargo.toml);
install -d /app/share/metainfo;
sed -e "s/@VERSION@/$version/" -e "s/@DATE@/$(date -u +%Y-%m-%d)/"
packaging/linux/ai.storyteller.filmcraft.metainfo.xml.in > /app/share/metainfo/ai.storyteller.filmcraft.metainfo.xml
sources:
- type: dir
path: ../../..
skip:
- target
- dist
- corpus
- build-flatpak
- .flatpak-builder
- cargo-sources.json
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.