-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcom.discordapp.DiscordCanary.json
135 lines (135 loc) · 5.42 KB
/
com.discordapp.DiscordCanary.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
135
{
"app-id": "com.discordapp.DiscordCanary",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "24.08",
"runtime": "org.freedesktop.Platform",
"runtime-version": "24.08",
"sdk": "org.freedesktop.Sdk",
"command": "com.discordapp.DiscordCanary",
"separate-locales": false,
"tags": [
"proprietary"
],
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=pulseaudio",
"--share=network",
"--device=all",
"--filesystem=xdg-run/speech-dispatcher",
"--talk-name=org.freedesktop.ScreenSaver",
"--talk-name=org.kde.StatusNotifierWatcher",
"--talk-name=com.canonical.AppMenu.Registrar",
"--talk-name=com.canonical.indicator.application",
"--talk-name=com.canonical.Unity",
"--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
"--env=ELECTRON_TRASH=gio"
],
"modules": [
{
"name": "socat",
"config-opts": [
"--disable-largefile",
"--disable-stats",
"--disable-stdio",
"--disable-fdnum",
"--disable-creat",
"--disable-gopen",
"--disable-pipe",
"--disable-socketpair",
"--disable-termios",
"--disable-abstract-unixsocket",
"--disable-ip6",
"--disable-rawip",
"--disable-genericsocket",
"--disable-interface",
"--disable-tcp",
"--disable-udp",
"--disable-udplite",
"--disable-sctp",
"--disable-dccp",
"--disable-vsock",
"--disable-namespaces",
"--disable-posixmq",
"--disable-socks4",
"--disable-socks4a",
"--disable-socks5",
"--disable-proxy",
"--disable-exec",
"--disable-system",
"--disable-shell",
"--disable-pty",
"--disable-fs",
"--disable-readline",
"--disable-openssl",
"--disable-tun",
"--disable-sycls",
"--disable-filan",
"--disable-libwrap",
"--disable-resolve"
],
"sources": [
{
"type": "archive",
"url": "http://www.dest-unreach.org/socat/download/socat-1.8.0.2.tar.gz",
"sha256": "e9498367cb765d44bb06be9709c950f436b30bf7071a224a0fee2522f9cbb417",
"x-checker-data": {
"type": "anitya",
"project-id": 4848,
"url-template": "http://www.dest-unreach.org/socat/download/socat-$version.tar.gz"
}
}
],
"cleanup": [
"/bin/*.sh",
"/bin/filan",
"/bin/procan",
"/share"
]
},
{
"name": "discord",
"buildsystem": "simple",
"build-commands": [
"install -Dm755 discord-canary.sh /app/bin/com.discordapp.DiscordCanary",
"install -Dm755 disable-breaking-updates.py /app/bin",
"mv DiscordCanary /app/discord-canary",
"chmod +x /app/discord-canary/DiscordCanary",
"install -d /app/share/applications",
"install -Dm755 /app/discord-canary/discord-canary.desktop /app/share/applications/${FLATPAK_ID}.desktop",
"install -Dm644 /app/discord-canary/discord.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
"install -Dm644 com.discordapp.DiscordCanary.metainfo.xml /app/share/appdata/com.discordapp.DiscordCanary.metainfo.xml",
"desktop-file-edit --set-icon=com.discordapp.DiscordCanary --set-key=Exec --set-value='com.discordapp.DiscordCanary %U' --add-mime-type=x-scheme-handler/discord /app/share/applications/${FLATPAK_ID}.desktop",
"patch-desktop-filename ${FLATPAK_DEST}/discord-canary/resources/app.asar"
],
"sources": [
{
"type": "archive",
"url": "https://dl-canary.discordapp.net/apps/linux/0.0.581/discord-canary-0.0.581.tar.gz",
"sha256": "3d44eed5ea2af2507ee2b5f4a800a1dccf2d3a347cdd382cdef68de6def4328f",
"strip-components": 0,
"x-checker-data": {
"type": "json",
"url": "https://discord.com/api/updates/canary?platform=linux",
"version-query": ".name",
"timestamp-query": ".pub_date",
"url-query": "\"https://dl-canary.discordapp.net/apps/linux/\\($version)/discord-canary-\\($version).tar.gz\"",
"is-main-source": true
}
},
{
"type": "file",
"path": "discord-canary.sh"
},
{
"type": "file",
"path": "com.discordapp.DiscordCanary.metainfo.xml"
},
{
"type": "file",
"path": "disable-breaking-updates.py"
}
]
}
]
}