scythe/packaging/flatpak/com.scythe.Scythe.yaml

39 lines
1.2 KiB
YAML

app-id: com.scythe.Scythe
runtime: org.gnome.Platform
runtime-version: '46'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: scythe-ui
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --filesystem=xdg-videos
- --filesystem=xdg-run/pipewire-0:ro
- --device=all
- --talk-name=org.freedesktop.portal.Desktop
- --talk-name=org.freedesktop.portal.ScreenCast
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/scythe/cargo
modules:
- name: scythe
buildsystem: simple
build-commands:
- cargo build --release --verbose
- install -Dm755 target/release/scythe-daemon /app/bin/scythe-daemon
- install -Dm755 target/release/scythe-ui /app/bin/scythe-ui
- install -Dm755 target/release/scythe /app/bin/scythe
- ln -sf /app/bin/scythe-daemon /app/bin/vrec-daemon
- ln -sf /app/bin/scythe-ui /app/bin/vrec-ui
- ln -sf /app/bin/scythe /app/bin/vrec
- install -Dm644 packaging/scythe.desktop /app/share/applications/com.scythe.Scythe.desktop
sources:
- type: git
url: https://github.com/oiupoyt/scythe.git
branch: main