Files
Remus/flatpak/me.anshorei.Fettleshed.Remus.yml
T
Ansho Rei 5e1e120457 chore: keep downloads in an ignored .scratch directory
Ignored by git and skipped by the Flatpak build, so a fetched asset pack
such as Kenney's Input Prompts can stay around between sessions.
2026-11-04 15:18:17 +01:00

52 lines
1.9 KiB
YAML

id: me.anshorei.Fettleshed.Remus
runtime: org.freedesktop.Platform
runtime-version: '26.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: remus
finish-args:
- --share=network
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
# GPU rendering and gamepads (evdev). --device=input would be narrower but
# needs Flatpak 1.15.6, which not every SteamOS release ships.
- --device=all
# Keeps the screensaver off while music plays, the way Chromium and
# Electron apps do. The XDG portal route needs no permission.
- --talk-name=org.freedesktop.ScreenSaver
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/remus/cargo-home
modules:
- name: remus
buildsystem: simple
build-commands:
# Crates come from the vendor directory `make flatpak` prepares: the build has no network.
- mkdir -p .cargo
- printf '[source.crates-io]\nreplace-with = "vendored"\n[source.vendored]\ndirectory = "vendor"\n' > .cargo/config.toml
- cargo build --release --offline --locked
- install -Dm755 target/release/remus /app/bin/remus
- install -Dm644 flatpak/me.anshorei.Fettleshed.Remus.desktop /app/share/applications/me.anshorei.Fettleshed.Remus.desktop
- install -Dm644 flatpak/me.anshorei.Fettleshed.Remus.metainfo.xml /app/share/metainfo/me.anshorei.Fettleshed.Remus.metainfo.xml
- install -Dm644 flatpak/me.anshorei.Fettleshed.Remus.svg /app/share/icons/hicolor/scalable/apps/me.anshorei.Fettleshed.Remus.svg
- install -Dm644 LICENSE /app/share/licenses/me.anshorei.Fettleshed.Remus/LICENSE
sources:
- type: dir
path: ..
skip:
- target
- .git
- .worklane
- .flatpak-builder
- .scratch
- type: dir
path: ../target/flatpak/vendor
dest: vendor