-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathim.riot.Riot.yaml
88 lines (88 loc) · 3.44 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
76
77
78
79
80
81
82
83
84
85
86
87
88
app-id: im.riot.Riot
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
runtime: org.freedesktop.Platform
runtime-version: '24.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
# Required to use the UnityLauncherAPI
- --talk-name=com.canonical.Unity
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"
- patch-desktop-filename ${FLATPAK_DEST}/Element/resources/app.asar
sources:
- type: archive
only-arches:
- x86_64
url: https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-1.11.89.tar.gz
sha256: 97d73227b17c347836f9c0a8afce59d1254816e41696b0aa9f467d391d28a51c
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: archive
only-arches:
- aarch64
url: https://packages.element.io/desktop/install/linux/glibc-aarch64/element-desktop-1.11.89-arm64.tar.gz
sha256: 4fb813cd894878ae31da5fa34b9b22949cfe7eabc4608b06a0f9d143bc6822a7
x-checker-data:
type: html
url: https://packages.element.io/desktop/install/linux/glibc-aarch64/index.html
version-pattern: element-desktop-([\d\.-]*)-arm64.tar.gz
url-template: https://packages.element.io/desktop/install/linux/glibc-aarch64/element-desktop-$version-arm64.tar.gz
- type: file
path: element.sh
- type: file
path: im.riot.Riot.metainfo.xml
- type: file
path: im.riot.Riot.desktop