mirror of
https://github.com/Felitendo/spotifast.git
synced 2026-11-01 17:33:26 +01:00
Align native and Flatpak window IDs with installed desktop entries and icons, while preserving existing window state. Keep packaging compatible with the immutable 0.8.0 inputs and test both launcher generations. Refs #462
40 lines
1.7 KiB
YAML
40 lines
1.7 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.fastpotify
|
|
- --own-name=rocks.fastpotify.Instance
|
|
- --persist=.local/state
|
|
modules:
|
|
- name: fastpotify
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -Dm755 fastpotify /app/bin/fastpotify
|
|
- ln -s fastpotify /app/bin/spotifast
|
|
- 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/fastpotify/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
|