-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcom.mattermost.Desktop.json
105 lines (105 loc) · 4.56 KB
/
com.mattermost.Desktop.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
98
99
100
101
102
103
104
105
{
"app-id": "com.mattermost.Desktop",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "23.08",
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"command": "mattermost-flatpak",
"separate-locales": false,
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--socket=pulseaudio",
"--socket=pcsc",
"--share=network",
"--device=all",
"--filesystem=home",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.kde.StatusNotifierWatcher",
"--talk-name=com.canonical.AppMenu.Registrar",
"--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
],
"modules": [
{
"name": "mattermost-desktop",
"buildsystem": "simple",
"build_commands": [
"mkdir -p /app/main /app/bin",
"cp -ra main/* /app/main/",
"install mattermost.sh /app/bin/mattermost-flatpak",
"install -Dm644 com.mattermost.Desktop.desktop /app/share/applications/com.mattermost.Desktop.desktop",
"install -Dm644 com.mattermost.Desktop.appdata.xml /app/share/appdata/com.mattermost.Desktop.appdata.xml",
"install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/com.mattermost.Desktop.svg",
"desktop-file-edit --set-key=\"Exec\" --set-value=\"mattermost-flatpak --enable-features=WebRTCPipeWireCapturer %U\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"patch-desktop-filename ${FLATPAK_DEST}/main/resources/app.asar"
],
"sources": [
{
"type": "script",
"dest-filename": "mattermost.sh",
"commands": [
"export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
"exec zypak-wrapper /app/main/mattermost-desktop \"$@\""
]
},
{
"type": "archive",
"only-arches": [
"x86_64"
],
"url": "https://releases.mattermost.com/desktop/5.10.2/mattermost-desktop-5.10.2-linux-x64.tar.gz",
"sha256": "31257989ab3ae377982a62652489c2b8d03686768346ffb773bc78c71648ed9e",
"x-checker-data": {
"is-main-source": true,
"type": "anitya",
"project-id": 215074,
"stable-only": true,
"url-template": "https://releases.mattermost.com/desktop/$version/mattermost-desktop-$version-linux-x64.tar.gz"
},
"dest": "main"
},
{
"type": "archive",
"only-arches": [
"aarch64"
],
"url": "https://releases.mattermost.com/desktop/5.10.2/mattermost-desktop-5.10.2-linux-arm64.tar.gz",
"sha256": "bee527ecb5acf7bd28d52d42996dee32213463c5e93f4795b680b634fd7747cc",
"x-checker-data": {
"is-main-source": true,
"type": "anitya",
"project-id": 215074,
"stable-only": true,
"url-template": "https://releases.mattermost.com/desktop/$version/mattermost-desktop-$version-linux-arm64.tar.gz"
},
"dest": "main"
},
{
"type": "file",
"path": "com.mattermost.Desktop.appdata.xml"
},
{
"type": "file",
"path": "com.mattermost.Desktop.desktop"
},
{
"type": "file",
"path": "icon.svg"
},
{
"type": "file",
"url": "https://github.com/mattermost/desktop/archive/v5.10.2.tar.gz",
"sha256": "dc06b46bf4d3f00baab991ef5784cd419b7d66c2aaf7a3dce8ce015cd968acd8",
"x-checker-data": {
"type": "anitya",
"project-id": 215074,
"stable-only": true,
"url-template": "https://github.com/mattermost/desktop/archive/v$version.tar.gz"
}
}
]
}
]
}