forked from flathub/com.parsecgaming.parsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.parsecgaming.parsec.yml
92 lines (91 loc) · 3.29 KB
/
com.parsecgaming.parsec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
app-id: com.parsecgaming.parsec
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: parsec
copy-icon: true
separate-locales: false
finish-args:
- --share=ipc
# Workaround for broken wayland support
- --socket=x11
- --socket=pulseaudio
# As a game streaming service, network is obviously mendatory
- --share=network
# Parsec supports Hardware Accelerated Decoding and Gamepads
# For Hardware Accelerated Decoding only, --device=dri would be enough
- --device=all
# This is required in order to keep login state and settings as it doesn't
# follow the freedesktop standard and therefore ignores $XDG_DATA_HOME.
# Instead it drops everything into $HOME
- --persist=.
# Used for notifications due to the internal chat feature
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.portal.Fcitx
add-extensions:
org.freedesktop.Platform.ffmpeg-full:
add-ld-path: .
autodelete: false
autodownload: true
directory: lib/ffmpeg
version: '21.08'
cleanup-commands:
- mkdir -p /app/lib/ffmpeg
cleanup:
- /include
- /lib/pkgconfig
- /lib/*.la
- /lib/*.a
- /share/pkgconfig
- /share/aclocal
- /share/gtk-doc
- /share/doc
- /share/info
- /share/man
- /man
modules:
- name: parsec
buildsystem: simple
build-commands:
- install -Dm755 /usr/bin/ar -t ${FLATPAK_DEST}/bin
- install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t ${FLATPAK_DEST}/lib
- install -Dm755 parsec.sh ${FLATPAK_DEST}/bin/parsec
- install -Dm755 apply_extra ${FLATPAK_DEST}/bin/apply_extra
- install -Dm644 com.parsecgaming.parsec.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- install -Dm644 com.parsecgaming.parsec.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 com.parsecgaming.parsec.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
sources:
- type: extra-data
filename: parsec-linux.deb
only-arches:
- x86_64
url: https://builds.parsecgaming.com/package/parsec-linux.deb
sha256: c30072f3a4ddac7687f626b8d32876e327791bce164d74448a147ef48ea8eae5
size: 1401456
x-checker-data:
type: rotating-url
url: https://builds.parsecgaming.com/package/parsec-linux.deb
- type: script
dest-filename: apply_extra
commands:
- ar x parsec-linux.deb
- tar xf data.tar.xz
- mv usr/* .
- rm -rf usr debian-binary control.tar.gz data.tar.xz parsec-linux.deb
- type: script
dest-filename: parsec.sh
commands:
# The appdata.json is a file provided by parsec describing meta-information
# for the parsecd-*.so. Without this file present in the home directory
# parsec will refuse to start.
- '[ ! -e $HOME/appdata.json ] && cp /app/extra/share/parsec/skel/appdata.json
$HOME'
- '[ ! -e $HOME/parsecd-*.so ] && ln -s /app/extra/share/parsec/skel/parsecd-*.so
$HOME'
- exec /app/extra/bin/parsecd "$@"
- type: file
path: com.parsecgaming.parsec.metainfo.xml
- type: file
path: com.parsecgaming.parsec.desktop
- type: file
path: com.parsecgaming.parsec.png