obliteration/flatpak.yml
2024-03-16 20:01:57 +01:00

36 lines
888 B
YAML

app-id: io.github.obhq.Obliteration
default-branch: stable
runtime: org.kde.Platform
runtime-version: '6.6'
platform-extensions:
- org.freedesktop.Platform.GL.default
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: obliteration
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
build-args:
- --share=network
- --device=kvm # required for running tests
finish-args:
- --filesystem=home
- --share=network
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --device=kvm
- --socket=pulseaudio
modules:
- name: obliteration
buildsystem: simple
build-commands:
- cmake --preset linux-release .
- cmake --build --preset linux-release
- cargo test --manifest-path src/Cargo.toml --workspace --exclude core
- cmake --install build --prefix "$FLATPAK_DEST"
sources:
- type: dir
path: .