forked from flathub/im.riot.Riot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathim.riot.Riot.yaml
75 lines (75 loc) · 2.72 KB
/
im.riot.Riot.yaml
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
app-id: im.riot.Riot
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: element
separate-locales: false
finish-args:
# Version required to use the document-portal v4
- --require-version=1.7.0
# Required due to being a GUI application
- --socket=x11
# Required to make sure x11 performance is achived on all platforms
# At least that's what the legends tell. it might be worth experimenting
# with dropping this permission.
- --share=ipc
# Required for experimental wayland support
- --socket=wayland
# Required to provide Call functionality
- --socket=pulseaudio
- --device=all
# As a chat application, networking is required
- --share=network
# Required for notifications in various desktop environments
- --talk-name=org.kde.StatusNotifierWatcher
# Required to allow screensaver/idle inhibition such as during video calls
- --talk-name=org.freedesktop.ScreenSaver
# Required to store access tokens (persistent logins)
- --filesystem=xdg-run/keyring
# Required for experimental wayland support
- --filesystem=xdg-run/pipewire-0
# For correct cursor scaling under Wayland
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
cleanup:
- /include
- /lib/pkgconfig
- /lib/*.la
- /lib/*.a
- /share/pkgconfig
- /share/aclocal
- /share/gtk-doc
- /share/doc
- /share/info
- /share/man
- /man
modules:
- name: riot
buildsystem: simple
build-commands:
- install element.sh /app/bin/element
- install -Dm644 im.riot.Riot.desktop /app/share/applications/im.riot.Riot.desktop
- install -Dm644 im.riot.Riot.metainfo.xml /app/share/metainfo/im.riot.Riot.metainfo.xml
- rm element.sh im.riot.Riot.desktop im.riot.Riot.metainfo.xml
- install -Dm644 resources/img/element.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- mkdir /app/Element
- cp -r * /app/Element
- chmod -R a-s,go+rX,go-w "/app/Element"
sources:
- type: archive
only-arches:
- x86_64
url: https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-1.11.55.tar.gz
sha256: d6e06a0fdaad4cf250910bbe7f6dc13d80d559226b4f6682e55fa6f4268b2256
x-checker-data:
type: html
url: https://packages.element.io/desktop/install/linux/glibc-x86-64/index.html
version-pattern: element-desktop-([\d\.-]*).tar.gz
url-template: https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-$version.tar.gz
- type: file
path: element.sh
- type: file
path: im.riot.Riot.metainfo.xml
- type: file
path: im.riot.Riot.desktop