Adapted from storytold/photocraft's release.yml and packaging/ (Apache-2.0; ATTRIBUTION.md and NOTICE say so). Packages install the licence files, THIRD-PARTY-LICENSES.txt included. The app icon is drawn by `solvecraft-cli icon` (a blue block with a bore, rendered on a transparent background; .ico too), so no image is committed. Notes: a short header plus GitHub's generated What's Changed. A dry run (Run workflow, publish off) keeps the files as the release-assets artifact. packaging-lint.yml checks the workflows, scripts and metadata. Co-Authored-By: Claude Opus 5.5 <[email protected]>
44 lines
2.5 KiB
YAML
44 lines
2.5 KiB
YAML
# Flatpak manifest for the single-file bundle attached to every GitHub release
|
|
# (solvecraft-<version>-linux-<arch>.flatpak). Build it with packaging/linux/flatpak-bundle.sh.
|
|
# Adapted from PhotoCraft's (storytold/photocraft, Apache-2.0; see ATTRIBUTION.md).
|
|
#
|
|
# It repackages the release's own Linux tarball (solvecraft-<version>-linux-<arch>.tar.gz, built
|
|
# on Ubuntu 22.04 by package.sh) instead of compiling Rust inside flatpak-builder: no network
|
|
# during the build, and the same binaries as the AppImage/deb/rpm. The binaries need glibc >= 2.35
|
|
# and load X11, Wayland, xkbcommon and Vulkan at runtime; the freedesktop runtime has all of
|
|
# them, and the GPU driver comes from its org.freedesktop.Platform.GL extension.
|
|
id: ai.storyteller.solvecraft
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '26.08'
|
|
sdk: org.freedesktop.Sdk
|
|
command: solvecraft
|
|
finish-args:
|
|
# Display: Wayland first; X11 only when no Wayland compositor is running.
|
|
- --socket=wayland
|
|
- --socket=fallback-x11
|
|
# X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails.
|
|
- --share=ipc
|
|
# GPU access for the wgpu viewport (Vulkan, or GL as a fallback).
|
|
- --device=dri
|
|
# Open/Save dialogs go through the file-chooser portal (rfd's xdg-portal backend), so picked
|
|
# files work anywhere without broad filesystem access. Documents is granted so files passed by
|
|
# path (the command line, recent designs) work in the usual place.
|
|
- --filesystem=xdg-documents
|
|
# Deliberately not granted: network (the optional --control server listens on 127.0.0.1 in
|
|
# the sandbox; `flatpak override --user --share=network ai.storyteller.solvecraft` exposes it to
|
|
# host agents) and home/host filesystem access.
|
|
modules:
|
|
- name: solvecraft
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -Dm755 bin/solvecraft /app/bin/solvecraft
|
|
- install -Dm755 bin/solvecraft-cli /app/bin/solvecraft-cli
|
|
- install -Dm644 share/applications/ai.storyteller.solvecraft.desktop /app/share/applications/ai.storyteller.solvecraft.desktop
|
|
- install -Dm644 share/mime/packages/ai.storyteller.solvecraft.xml /app/share/mime/packages/ai.storyteller.solvecraft.xml
|
|
# Already has the release's version and date substituted by package.sh.
|
|
- install -Dm644 share/metainfo/ai.storyteller.solvecraft.metainfo.xml /app/share/metainfo/ai.storyteller.solvecraft.metainfo.xml
|
|
- mkdir -p /app/share/icons /app/share/doc && cp -R share/icons/hicolor /app/share/icons/ && cp -R share/doc/solvecraft /app/share/doc/
|
|
sources:
|
|
- type: dir
|
|
path: stage
|