app-id: com.crossplatformstitch.Stitcher runtime: org.gnome.Platform runtime-version: "49" sdk: org.gnome.Sdk command: stitcher build-options: no-debuginfo: true finish-args: - --share=ipc - --socket=wayland - --socket=fallback-x11 - --device=dri # Imports, exports, and watched folders go through the file chooser portal # (org.freedesktop.portal.FileChooser). Picked folders are added to the # Documents portal and stay accessible across sessions. GTK_USE_PORTAL keeps # the classic-picker fallback sandbox-safe when the portal is unavailable. - --talk-name=org.freedesktop.portal.* - --env=GTK_USE_PORTAL=1 # Automatic screenshot discovery is read-only and limited to the user's # configured Pictures directory. Additional watched folders are granted # explicitly through the portal; the settings screen explains the grant. - --filesystem=xdg-pictures:ro modules: - name: stitcher buildsystem: simple build-commands: - install -d /app/lib/cross-platform-stitch /app/bin - cp -a . /app/lib/cross-platform-stitch/ - printf '#!/bin/sh\nexec /app/lib/cross-platform-stitch/stitcher "$@"\n' > /app/bin/stitcher - chmod 0755 /app/bin/stitcher sources: - type: dir path: ../../apps/stitcher/build/linux/x64/release/bundle - name: stitcher-desktop-assets buildsystem: simple build-commands: - install -Dm644 com.crossplatformstitch.Stitcher.desktop /app/share/applications/com.crossplatformstitch.Stitcher.desktop - install -Dm644 com.crossplatformstitch.Stitcher.metainfo.xml /app/share/metainfo/com.crossplatformstitch.Stitcher.metainfo.xml - install -Dm644 com.crossplatformstitch.Stitcher.svg /app/share/icons/hicolor/scalable/apps/com.crossplatformstitch.Stitcher.svg - install -Dm644 LICENSE /app/share/licenses/com.crossplatformstitch.Stitcher/LICENSE sources: - type: file path: com.crossplatformstitch.Stitcher.desktop - type: file path: com.crossplatformstitch.Stitcher.metainfo.xml - type: file path: com.crossplatformstitch.Stitcher.svg - type: file path: ../../LICENSE - name: stitch-cli buildsystem: simple build-commands: - install -Dm755 stitch-cli /app/bin/stitch-cli sources: - type: file path: ../../target/release/stitch-cli