Skip to content

Commit 70083ff

Browse files
authored
Add basic flatpak manifest
Adds working flatpak manifest based on github releases
1 parent 6d543a3 commit 70083ff

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

flatpak/audio.mod.mod-desktop.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
id: audio.mod.mod-desktop
2+
runtime: org.kde.Platform
3+
runtime-version: "5.15-23.08"
4+
sdk: org.kde.Sdk
5+
6+
command: mod-desktop
7+
finish-args:
8+
# X11 + XShm access
9+
- --share=ipc
10+
- --socket=fallback-x11
11+
# Wayland access
12+
- --socket=wayland
13+
# GPU acceleration
14+
- --device=dri
15+
# Audio
16+
- --socket=pulseaudio
17+
- --filesystem=xdg-run/pipewire-0
18+
- --env=JACKBRIDGE_FILENAME=/usr/lib/x86_64-linux-gnu/libjack.so.0
19+
# Network access
20+
- --share=network
21+
# DBus access
22+
- --own-name=org.freedesktop.ReserveDevice1.*
23+
# Audio card access
24+
- --device=all
25+
# Documents (data folder) access
26+
- --filesystem=xdg-documents/MOD Desktop:create
27+
modules:
28+
- name: mod-desktop
29+
buildsystem: simple
30+
build-commands:
31+
- mkdir -p ${FLATPAK_DEST}/opt
32+
- mv mod-desktop ${FLATPAK_DEST}/opt/.
33+
- install -Dm755 mod-desktop.sh ${FLATPAK_DEST}/bin/mod-desktop
34+
sources:
35+
- type: archive
36+
url: https://github.com/mod-audio/mod-desktop/releases/download/0.0.12/mod-desktop-0.0.12-linux-x86_64.tar.xz
37+
sha256: d1faf2094641d5ef527ee9b6012f13f1255e3c2783773939b1c2449848c7c50c
38+
only-arches:
39+
- x86_64
40+
x-checker-data:
41+
type: json
42+
url: https://api.github.com/repos/ibancg/lingot/releases
43+
version-query: '.[].tag_name | sub("^v"; "")'
44+
url-query: '.[].assets.[] | select(.name=="mod-desktop-" + $version + "-linux-x86_64.tar.xz") | .browser_download_url'
45+
- type: script
46+
dest-filename: mod-desktop.sh
47+
commands:
48+
- cd "/app/opt/mod-desktop"
49+
- exec "$(pwd)/mod-desktop"

0 commit comments

Comments
 (0)