forked from flathub/chat.rocket.RocketChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.rocket.RocketChat.yaml
57 lines (57 loc) · 2.28 KB
/
chat.rocket.RocketChat.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
app-id: chat.rocket.RocketChat
runtime: org.freedesktop.Platform
runtime-version: '22.08'
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
sdk: org.freedesktop.Sdk
command: rocketchat-desktop
separate-locales: false
rename-desktop-file: rocketchat-desktop.desktop
rename-icon: rocketchat-desktop
finish-args:
- --share=ipc
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --share=network
# Camera for calls
- --device=all
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.gnome.Mutter.IdleMonitor
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=com.canonical.indicator.application
- --talk-name=org.ayatana.indicator.application
modules:
- name: rocketchat-desktop
buildsystem: simple
sources:
- type: file
path: chat.rocket.RocketChat.appdata.xml
- type: script
dest-filename: run.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- >-
exec zypak-wrapper /app/Rocket.Chat/rocketchat-desktop
--ozone-platform-hint=auto "$@"
- type: file
dest-filename: rocketchat.deb
only-arches:
- x86_64
url: https://github.com/RocketChat/Rocket.Chat.Electron/releases/download/3.9.14/rocketchat-3.9.14-linux-amd64.deb
sha256: d5937177392486c0cf6f0c934d32a617ba75d1580646f470df55bdd66d47e183
x-checker-data:
type: json
url: https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.name | match("(linux-amd64.deb)")) | .browser_download_url
build-commands:
- >
bsdtar -Oxf rocketchat.deb 'data.tar.xz' |
bsdtar -xf - -C "${FLATPAK_DEST}" --strip-components=2 ./opt ./usr
- rm -r "${FLATPAK_DEST}/share/icons/hicolor/1024x1024"
- install -Dm0755 run.sh "${FLATPAK_DEST}/bin/rocketchat-desktop"
- chmod -R a-s,go+rX,go-w ${FLATPAK_DEST}/Rocket.Chat
- desktop-file-edit --set-key=Exec --set-value='rocketchat-desktop %U' "${FLATPAK_DEST}/share/applications/rocketchat-desktop.desktop"
- install -Dm0644 "chat.rocket.RocketChat.appdata.xml" "${FLATPAK_DEST}/share/appdata/chat.rocket.RocketChat.appdata.xml"