mirror of
https://github.com/storytold/filmcraft.git
synced 2026-10-14 11:17:01 -04:00
The desktop entry declared no MimeType and the shared-mime-info file was an empty stub, so no file manager listed FilmCraft under "Open With" for any file, and a double-clicked .fcproj had no type to open with. The app already handles both from the command line (`%F`): a project opens, media is imported (#850). - mime.xml: define application/x-filmcraft for *.fcproj, a JSON subclass with the app icon; the same name the macOS UTI declares in Info.plist.in. - Desktop entry: MimeType lists the project type and the video containers FilmCraft imports (MP4/M4V, QuickTime, Matroska, WebM, AVI, MXF, MPEG-TS, MPEG-PS, 3GP). Audio and stills are left out so an NLE doesn't crowd every image and song's Open With list. - AppStream: the metainfo <provides> the project type. - Flatpak bundle: the comment no longer says the MIME file has no types. Co-Authored-By: Claude Opus 5.5 <[email protected]>
60 lines
3.5 KiB
YAML
60 lines
3.5 KiB
YAML
# Flatpak manifest for the single-file bundle attached to every GitHub release
|
|
# (filmcraft-<version>-linux-<arch>.flatpak). Build it with packaging/linux/flatpak-bundle.sh.
|
|
#
|
|
# It repackages the release's own Linux tarball (filmcraft-<version>-linux-<arch>.tar.gz,
|
|
# built on Ubuntu 22.04 by package.sh) instead of compiling Rust inside flatpak-builder: no
|
|
# network and no vendored crate sources during the build, a few seconds instead of 20+ minutes,
|
|
# and byte-for-byte the same binaries as the AppImage/deb/rpm. The script unpacks the tarball
|
|
# into `stage/` next to a copy of this file. The binaries need glibc >= 2.35 and load X11,
|
|
# Wayland, xkbcommon, ALSA and Vulkan at runtime; the freedesktop runtime has all of them (its
|
|
# ALSA routes through PulseAudio/PipeWire), and the GPU driver comes from its
|
|
# org.freedesktop.Platform.GL extension.
|
|
#
|
|
# ai.storyteller.filmcraft.yml (same directory) is the from-source manifest for Flathub. Keep
|
|
# runtime-version and finish-args identical in both (packaging-lint checks this).
|
|
id: ai.storyteller.filmcraft
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '25.08'
|
|
sdk: org.freedesktop.Sdk
|
|
command: filmcraft
|
|
finish-args:
|
|
# 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
|
|
# Deliberately not granted: network (the optional --control server listens on 127.0.0.1 in
|
|
# the sandbox; `flatpak override --user --share=network ai.storyteller.filmcraft` exposes it
|
|
# to host agents) and host-wide filesystem access.
|
|
modules:
|
|
- name: filmcraft
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -Dm755 bin/filmcraft /app/bin/filmcraft
|
|
- install -Dm755 bin/filmcraft-cli /app/bin/filmcraft-cli
|
|
- install -Dm644 share/applications/ai.storyteller.filmcraft.desktop /app/share/applications/ai.storyteller.filmcraft.desktop
|
|
# The same MIME file the deb/rpm install: it defines the .fcproj project type (the
|
|
# runtime's shared-mime-info already knows the video and audio formats).
|
|
- install -Dm644 share/mime/packages/ai.storyteller.filmcraft.xml /app/share/mime/packages/ai.storyteller.filmcraft.xml
|
|
# Already has the release's version and date substituted by package.sh.
|
|
- install -Dm644 share/metainfo/ai.storyteller.filmcraft.metainfo.xml /app/share/metainfo/ai.storyteller.filmcraft.metainfo.xml
|
|
- mkdir -p /app/share/icons /app/share/doc && cp -R share/icons/hicolor /app/share/icons/ && cp -R share/doc/filmcraft /app/share/doc/
|
|
sources:
|
|
- type: dir
|
|
path: stage
|