-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathcom.discordapp.Discord.json
134 lines (134 loc) · 5.29 KB
/
com.discordapp.Discord.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"app-id": "com.discordapp.Discord",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "23.08",
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"command": "discord",
"separate-locales": false,
"tags": [
"proprietary"
],
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=pulseaudio",
"--share=network",
"--device=all",
"--talk-name=org.freedesktop.ScreenSaver",
"--filesystem=xdg-videos:ro",
"--filesystem=xdg-pictures:ro",
"--filesystem=xdg-download",
"--talk-name=org.kde.StatusNotifierWatcher",
"--talk-name=com.canonical.AppMenu.Registrar",
"--talk-name=com.canonical.indicator.application",
"--talk-name=com.canonical.Unity.LauncherEntry",
"--own-name=org.kde.*",
"--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
],
"modules": [
{
"name": "twemoji-fonts",
"buildsystem": "simple",
"sources": [
{
"type": "file",
"path": "emoji-font.conf"
},
{
"type": "file",
"path": "Twemoji.ttf"
}
],
"build-commands": [
"mkdir -p /app/share/fonts/",
"cp Twemoji.ttf /app/share/fonts/",
"mkdir -p /app/etc/fonts/",
"cp emoji-font.conf /app/etc/fonts/local.conf",
"fc-cache -fv"
]
},
{
"name": "discord",
"buildsystem": "simple",
"build-commands": [
"install -Dm755 discord.sh /app/bin/discord",
"install -Dm755 disable-breaking-updates.py /app/bin",
"mv Discord /app/discord",
"chmod +x /app/discord/Discord",
"install -d /app/share/applications",
"sed -e 's/Icon=discord/Icon=com.discordapp.Discord/' -e 's|Exec=/usr/share/discord/Discord|Exec=discord|' /app/discord/discord.desktop > /app/share/applications/${FLATPAK_ID}.desktop",
"install -Dm644 /app/discord/discord.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
"install -Dm644 com.discordapp.Discord.appdata.xml /app/share/appdata/com.discordapp.Discord.appdata.xml"
],
"sources": [
{
"type": "archive",
"url": "https://dl.discordapp.net/apps/linux/0.0.32/discord-0.0.32.tar.gz",
"sha256": "5de1832912a7bc3ca5d005a6f55b3f3c37887c0abf14bf40b232edf9d360d474",
"strip-components": 0,
"x-checker-data": {
"type": "rotating-url",
"url": "https://discord.com/api/download?platform=linux&format=tar.gz",
"pattern": "https://dl.discordapp.net/apps/linux/([0-9.]+)/discord-([0-9.]+).tar.gz"
}
},
{
"type": "file",
"path": "discord.sh"
},
{
"type": "file",
"path": "com.discordapp.Discord.appdata.xml"
},
{
"type": "file",
"path": "disable-breaking-updates.py"
}
],
"modules": [
{
"name": "pciutils",
"disabled": true,
"no-autogen": true,
"make-args": [
"SHARED=yes",
"PREFIX=/app"
],
"make-install-args": [
"SHARED=yes",
"PREFIX=/app"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/pciutils/pciutils/archive/v3.10.0.tar.gz",
"sha256": "e579d87f1afe2196db7db648857023f80adb500e8194c4488c8b47f9a238c1c6",
"x-checker-data": {
"type": "anitya",
"project-id": 2605,
"url-template": "https://github.com/pciutils/pciutils/archive/v$version.tar.gz"
}
}
]
},
{
"name": "socat",
"sources": [
{
"type": "archive",
"url": "http://www.dest-unreach.org/socat/download/socat-1.7.4.4.tar.gz",
"sha256": "0f8f4b9d5c60b8c53d17b60d79ababc4a0f51b3bb6d2bd3ae8a6a4b9d68f195e",
"x-checker-data": {
"type": "anitya",
"project-id": 4848,
"url-template": "http://www.dest-unreach.org/socat/download/socat-$version.tar.gz"
}
}
]
}
]
}
]
}