sn-client/flatpak.yaml
2024-05-07 00:30:01 +02:00

35 lines
1.2 KiB
YAML

app-id: re.niv.servnest.client
runtime: org.gnome.Platform
runtime-version: '45'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: sn-client
finish-args:
- --share=network # Connect to ServNest installations
# Display
- --socket=wayland # Wayland
- --socket=fallback-x11 # X11 if Wayland is unavailable
# System integration
- --filesystem=xdg-config/gtk-4.0:ro # Use system theme
# Performance
- --share=ipc # X11 shared memory extension
- --device=dri # Hardware acceleration
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/sn-client/cargo
modules:
- name: sn-client
buildsystem: simple
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- install -Dm755 ./target/release/sn-client -t /app/bin/
- install -Dm644 ./meta/metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 ./meta/entry.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 ./meta/icon.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
sources:
- type: dir
path: ./
- flatpak-sources.json