Files
filmcraft/packaging/linux/nfpm.yaml
T
Dylan M. Taylor 2d1d1b6920 packaging(linux): support co-installable nightly packages (#5225)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

The red 'SonarCloud' code-scanning check is a stale alert (S5443 /tmp in packaging/linux/test_install.py) on a line fixed in 6c3eafdb; SonarCloud's own quality gate passes on this head, and the alert should close once main is re-analysed.

Co-authored-by: Dylan M. Taylor <[email protected]>
2026-11-25 04:50:13 -06:00

83 lines
2.8 KiB
YAML

# .deb and .rpm packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
# the file tree, substitutes its path for ${STAGE} (nfpm doesn't expand env vars in `src`) and
# exports VERSION, NFPM_ARCH, NFPM_NAME, NFPM_BIN and NFPM_CLI (the last three name the Nightly
# package's own files). A Nightly stage also has usr/lib/filmcraft-nightly/: the GUI, started by
# the /usr/bin launcher with the Launcher's private profile. By hand, all five are needed:
#
# VERSION=1.2.3 NFPM_ARCH=amd64 NFPM_NAME=filmcraft NFPM_BIN=filmcraft \
# NFPM_CLI=filmcraft-cli nfpm package -f packaging/linux/nfpm.yaml -p deb -t dist/release/
name: ${NFPM_NAME}
arch: ${NFPM_ARCH}
platform: linux
version: ${VERSION}
# semver: 0.2.0-rc.1 becomes 0.2.0~rc.1 in deb/rpm, so pre-releases sort before the release.
version_schema: semver
release: 1
section: video
priority: optional
maintainer: ${FILMCRAFT_MAINTAINER}
vendor: Learning Machines LLC
homepage: https://getartcraft.com/apps/filmcraft
license: MIT OR Apache-2.0
description: |-
Open-source, native video editor: edit video, color and sound.
Timeline editing with source and program monitors, color grading and scopes,
effects and keyframes, titles and captions, audio mixing with loudness meters,
and export; GPU compositing (wgpu).
Includes filmcraft-cli, a headless command runner, MCP server and exporter.
# The binaries link only glibc and libgcc_s directly. Windowing (X11/Wayland, xkbcommon) and the
# GPU (Vulkan, EGL/GL) are loaded at runtime, so they are dependencies/recommendations here
# rather than ELF NEEDED entries.
overrides:
deb:
depends:
- libc6 (>= 2.35)
- libgcc-s1
- libxkbcommon0
- libvulkan1 | libegl1
- libasound2 | libasound2t64
recommends:
- libwayland-client0
- libx11-6
- libx11-xcb1
- libxcursor1
- libxi6
- libxrandr2
- mesa-vulkan-drivers
- xdg-desktop-portal
rpm:
depends:
# the same floor as the deb: built on glibc 2.35, so RHEL 9 (2.34) must refuse the install
# instead of installing binaries that can't start (#93)
- glibc >= 2.35
- libxkbcommon
- (vulkan-loader or libglvnd-egl)
- alsa-lib
recommends:
- libwayland-client
- libX11
- libXcursor
- libXi
- libXrandr
- mesa-vulkan-drivers
- xdg-desktop-portal
contents:
- src: ${STAGE}/usr/bin/${NFPM_BIN}
dst: /usr/bin/${NFPM_BIN}
file_info: { mode: 0755 }
- src: ${STAGE}/usr/bin/${NFPM_CLI}
dst: /usr/bin/${NFPM_CLI}
file_info: { mode: 0755 }
- src: ${STAGE}/usr/lib/
dst: /usr/lib/
type: tree
- src: ${STAGE}/usr/share/
dst: /usr/share/
type: tree
scripts:
postinstall: packaging/linux/postinst.sh
postremove: packaging/linux/postinst.sh