build: package remus as a Flatpak for SteamOS

SteamOS has a read-only root filesystem, so a Flatpak is the way to
install it. The build is offline from vendored crates. make
flatpak-bundle writes one file to copy to a Steam machine, and
make sdk-check runs the checks inside the SDK for hosts without the
GStreamer development files.
This commit is contained in:
Ansho Rei
2026-11-04 02:19:07 +01:00
parent af307549a8
commit a74fd1bd5c
6 changed files with 139 additions and 1 deletions
@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=Remus
Comment=Play your Subsonic music library with a controller
Exec=remus
Icon=me.anshorei.Fettleshed.Remus
Terminal=false
Categories=AudioVideo;Audio;Player;
Keywords=music;subsonic;navidrome;player;
StartupNotify=true
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>me.anshorei.Fettleshed.Remus</id>
<name>Remus</name>
<summary>Play your Subsonic music library with a controller</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<description>
<p>
A fullscreen music player for a Subsonic or OpenSubsonic server, built for SteamOS.
It is driven entirely with a gamepad and scales to look the same on a Steam Deck
and on a 4K TV.
</p>
</description>
<launchable type="desktop-id">me.anshorei.Fettleshed.Remus.desktop</launchable>
<url type="vcs-browser">https://gitea.anshorei.me/Fettleshed/remus</url>
<supports>
<control>gamepad</control>
<control>keyboard</control>
</supports>
<content_rating type="oars-1.1"/>
<releases>
<release version="0.1.0" date="2026-11-04"/>
</releases>
</component>
+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<rect x="8" y="8" width="112" height="112" rx="26" fill="#14171d"/>
<circle cx="64" cy="64" r="40" fill="#0d0f13"/>
<circle cx="64" cy="64" r="33" fill="none" stroke="#2a2f39" stroke-width="2"/>
<circle cx="64" cy="64" r="25" fill="none" stroke="#2a2f39" stroke-width="2"/>
<circle cx="64" cy="64" r="15" fill="#8ab4ff"/>
<circle cx="64" cy="64" r="4" fill="#0d0f13"/>
</svg>

After

Width:  |  Height:  |  Size: 476 B

+47
View File
@@ -0,0 +1,47 @@
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
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
- type: dir
path: ../target/flatpak/vendor
dest: vendor