-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathorg.signal.Signal.yaml
100 lines (97 loc) · 3.7 KB
/
org.signal.Signal.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
89
90
91
92
93
94
95
96
97
98
99
100
id: org.signal.Signal
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: signal-desktop
separate-locales: false
finish-args:
# X11 performance
- --share=ipc
# We need X11
- --socket=x11
# Access to wayland
- --socket=wayland
# Audio Access
- --socket=pulseaudio
# Access to all files
- --filesystem=host
# All devices (camera, microphone for calls)
- --device=all
# Network Access
- --share=network
# We need to be able to inhibit sleep
- --system-talk-name=org.freedesktop.login1
- --talk-name=org.gnome.SessionManager
- --talk-name=org.freedesktop.PowerManagement
- --talk-name=org.freedesktop.ScreenSaver
# Secrets storage
- --talk-name=org.freedesktop.secrets
# These are for notifications/tray icons
- --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
# Environment Variables to control the behavior
- --env=SIGNAL_DISABLE_GPU=0
- --env=SIGNAL_DISABLE_GPU_SANDBOX=0
- --env=SIGNAL_PASSWORD_STORE=basic
# Use same mouse cursors as host
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
modules:
- name: libsecret
buildsystem: meson
config-opts:
- -Dmanpage=false
- -Dcrypto=disabled
- -Dvapi=false
- -Dgtk_doc=false
- -Dintrospection=false
- -Dbash_completion=disabled
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: https://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.4.tar.xz
sha256: 163d08d783be6d4ab9a979ceb5a4fecbc1d9660d3c34168c581301cd53912b20
- name: signal-desktop
buildsystem: simple
build-commands:
- |
bsdtar -Oxf signal-desktop.deb 'data.tar.xz' |
bsdtar -xf - \
--exclude='./usr/share/doc'
- mv "opt/Signal" "${FLATPAK_DEST}/Signal"
- install -Dm0644 "usr/share/applications/signal-desktop.desktop" "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- |
for size in 16 24 32 48 64 128 256 512; do
install -Dm0644 "usr/share/icons/hicolor/${size}x${size}/apps/signal-desktop.png" "${FLATPAK_DEST}/share/icons/hicolor/${size}x${size}/apps/${FLATPAK_ID}.png"
done
- install -Dm0755 signal-desktop.sh "${FLATPAK_DEST}/bin/signal-desktop"
- install -Dm0644 "${FLATPAK_ID}.metainfo.xml" "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
- desktop-file-edit --set-key=Exec --set-value='signal-desktop %U' "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- desktop-file-edit --set-key=Icon --set-value="${FLATPAK_ID}" "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- desktop-file-edit --set-key=X-Flatpak-RenamedFrom --set-value='signal-desktop.desktop;' "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- patch-desktop-filename "${FLATPAK_DEST}/Signal/resources/app.asar"
sources:
- type: file
dest-filename: signal-desktop.deb
url: https://updates.signal.org/desktop/apt/pool/s/signal-desktop/signal-desktop_7.37.0_amd64.deb
sha256: 4ecd53483c48352b48b592fa04e27326d50e2eb20cb245d298b3033fef55bb44
x-checker-data:
type: debian-repo
package-name: signal-desktop
root: https://updates.signal.org/desktop/apt
dist: xenial
component: main
only-arches:
- x86_64
- type: file
path: signal-desktop.sh
- type: file
path: org.signal.Signal.metainfo.xml