Files
spotifast/packaging/flatpak/rocks.spotifast.Spotifast.bundle.yml
T

42 lines
1.9 KiB
YAML

# The release workflow's Flatpak: the binary the Linux job built, packaged
# into the same sandbox as rocks.spotifast.Spotifast.yml describes. The
# job unpacks the release tarball into built/ beside this file first.
id: rocks.spotifast.Spotifast
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: spotifast
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --socket=pulseaudio
- --share=network
# Platform storage for this application's Spotify grants.
- --talk-name=org.freedesktop.secrets
- --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.mpris.MediaPlayer2.spotifast
# Historical release binaries still advertise this name.
- --own-name=org.mpris.MediaPlayer2.fastpotify
- --own-name=rocks.fastpotify.Instance
- --persist=.local/state
modules:
- name: spotifast
buildsystem: simple
build-commands:
- binary=spotifast; test -f $binary || binary=fastpotify; install -Dm755 $binary /app/bin/spotifast
- ln -s spotifast /app/bin/fastpotify
- install -Dm644 packaging/applications/*.desktop /app/share/applications/rocks.spotifast.Spotifast.desktop
- sed -i 's/^Icon=.*$/Icon=rocks.spotifast.Spotifast/;s/^StartupWMClass=spotifast$/StartupWMClass=rocks.spotifast.Spotifast/' /app/share/applications/rocks.spotifast.Spotifast.desktop
- install -Dm644 packaging/icons/*.svg /app/share/icons/hicolor/scalable/apps/rocks.spotifast.Spotifast.svg
- install -Dm644 packaging/flatpak/rocks.spotifast.Spotifast.metainfo.xml /app/share/metainfo/rocks.spotifast.Spotifast.metainfo.xml
- install -Dm644 LICENSE /app/share/licenses/spotifast/LICENSE
sources:
- type: dir
path: built
# Metainfo belongs to this packaging checkout, not the portable archive.
- type: file
path: rocks.spotifast.Spotifast.metainfo.xml
dest: packaging/flatpak