forked from flathub/com.slack.Slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.slack.Slack.json
97 lines (97 loc) · 4.34 KB
/
com.slack.Slack.json
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
{
"app-id": "com.slack.Slack",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "20.08",
"runtime": "org.freedesktop.Platform",
"runtime-version": "20.08",
"sdk": "org.freedesktop.Sdk",
"command": "slack",
"separate-locales": false,
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=pulseaudio",
"--share=network",
"--device=all",
"--filesystem=xdg-documents:ro",
"--filesystem=xdg-pictures:ro",
"--filesystem=xdg-music:ro",
"--filesystem=xdg-videos:ro",
"--filesystem=xdg-download",
"--talk-name=org.freedesktop.Notifications",
"--env=XDG_CURRENT_DESKTOP=Unity",
"--talk-name=org.kde.StatusNotifierWatcher",
"--filesystem=xdg-run/pipewire-0",
"--talk-name=com.canonical.AppMenu.Registrar"
],
"modules": [
{
"name": "slack",
"buildsystem": "simple",
"build-commands": [
"install apply_extra ${FLATPAK_DEST}/bin",
"install slack.sh ${FLATPAK_DEST}/bin/slack",
"install -Dm644 com.slack.Slack.appdata.xml ${FLATPAK_DEST}/share/appdata/${FLATPAK_ID}.appdata.xml",
"install -Dm644 slack.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
"install -Dm644 slack.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"desktop-file-edit --set-key=\"Icon\" --set-value=\"com.slack.Slack\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"desktop-file-edit --set-key=\"Exec\" --set-value=\"slack --enable-features=WebRTCPipeWireCapturer %U\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"desktop-file-edit --set-key=\"StartupWMClass\" --set-value=\"Slack\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"desktop-file-edit --set-key=\"X-Flatpak-RenamedFrom\" --set-value=\"slack.desktop;\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"install -Dm755 /usr/bin/ar -t ${FLATPAK_DEST}/bin",
"install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t ${FLATPAK_DEST}/lib"
],
"sources": [
{
"type": "script",
"dest-filename": "apply_extra",
"commands": [
"ar x slack.deb",
"rm -f slack.deb",
"tar xf data.tar.xz",
"rm -f control.tar.gz data.tar.xz debian-binary",
"mv usr/* .",
"chmod -R a-s,go+rX,go-w .",
"rmdir usr"
]
},
{
"type": "script",
"dest-filename": "slack.sh",
"commands": [
"exec env TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/extra/bin/slack -s \"$@\""
]
},
{
"type": "file",
"path": "com.slack.Slack.appdata.xml"
},
{
"type": "file",
"path": "slack.png"
},
{
"type": "file",
"path": "slack.desktop"
},
{
"type": "extra-data",
"filename": "slack.deb",
"only-arches": [
"x86_64"
],
"url": "https://downloads.slack-edge.com/linux_releases/slack-desktop-4.17.0-amd64.deb",
"sha256": "b1e7123f9e51d292b647fecd42236f2de3b3f863c631e8278d47e08b8aae8c1d",
"size": 60979198,
"x-checker-data": {
"type": "html",
"url": "https://slack.com/intl/en-nl/downloads/instructions/ubuntu",
"version-pattern": "https://downloads.slack-edge.com/linux_releases/slack-desktop-([\\d\\.]+)-amd64.deb",
"url-pattern": "(https://downloads.slack-edge.com/linux_releases/slack-desktop-[\\d\\.]+-amd64.deb)",
"is-main-source": "true"
}
}
]
}
]
}