FRESHMusicPlayer/Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.yml
2021-06-10 09:49:54 +10:00

43 lines
1.6 KiB
YAML

app-id: io.github.royce551.FRESHMusicPlayer.Blueprint
runtime: org.freedesktop.Platform
runtime-version: '20.08'
sdk: org.freedesktop.Sdk
command: fmp
finish-args:
- --socket=x11
- --socket=pulseaudio
- --filesystem=home
- --filesystem=xdg-run/fmp
- --own-name=org.mpris.MediaPlayer2.FRESHMusicPlayer
build-options:
build-args:
- --share=network
cleanup:
- '/include'
- '/usr/include'
- '/app/opt/dotnet'
modules:
- name: dotnet
buildsystem: simple
build-commands:
- chmod +x dotnet-install.sh
- ./dotnet-install.sh --install-dir /app/opt/dotnet/ --version 5.0.202
sources:
- type: file
url: https://dot.net/v1/dotnet-install.sh
sha256: d998926533a32537fada686ac41918b67e3e97a169a43c99cfd4100711767145
- name: fmp
buildsystem: simple
build-commands:
- cd FRESHMusicPlayer/FRESHMusicPlayer-Avalonia; /app/opt/dotnet/dotnet publish FRESHMusicPlayer-Avalonia.csproj -c Release -r linux-x64 -o /app/opt/freshmusicplayer
- mkdir -p /app/bin
- ln -s /app/opt/freshmusicplayer/FRESHMusicPlayer /app/bin/fmp
- mkdir -p /app/share/applications
- cp Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.desktop /app/share/applications
- mkdir -p /app/share/icons/hicolor/scalable/apps
- cp Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.svg /app/share/icons/hicolor/scalable/apps/
- mkdir -p /app/share/metainfo
- cp Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.metainfo.xml /app/share/metainfo/
sources:
- type: git
url: https://github.com/Royce551/FRESHMusicPlayer