forked from flathub/org.telegram.desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.telegram.desktop.yml
277 lines (263 loc) · 7.93 KB
/
org.telegram.desktop.yml
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
id: org.telegram.desktop
runtime: org.freedesktop.Platform
runtime-version: '20.08'
sdk: org.freedesktop.Sdk
command: telegram-desktop
rename-icon: telegram
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --device=all
- --own-name=org.mpris.MediaPlayer2.tdesktop
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.gnome.Mutter.IdleMonitor
- --talk-name=org.gnome.SettingsDaemon.MediaKeys
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=com.canonical.Unity
- --talk-name=com.canonical.indicator.application
- --talk-name=org.ayatana.indicator.application
- --filesystem=xdg-download
add-extensions:
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
add-ld-path: .
version: '20.08'
autodownload: true
autodelete: false
cleanup-commands:
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg
build-options:
cflags: ''
cflags-override: true
cxxflags: ''
cxxflags-override: true
ldflags: -L/app/lib
ldflags-override: true
cleanup:
- /cache
- /man
- /doc
- /share/man
- /lib/systemd
- /include
- /lib/pkgconfig
- /lib/cmake
- /lib/mkspecs
- /lib/*.prl
- '*.la'
- '*.a'
modules:
- name: yasm
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
sources:
- type: archive
url: http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
sha256: 3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
cleanup:
- '*'
- name: libsigc++
buildsystem: meson
builddir: true
config-opts:
- --buildtype=debugoptimized
- -Dvalidation=false
- -Dbuild-examples=false
sources:
- type: archive
url: https://download.gnome.org/sources/libsigc%2B%2B/2.10/libsigc%2B%2B-2.10.6.tar.xz
sha256: dda176dc4681bda9d5a2ac1bc55273bdd381662b7a6d49e918267d13e8774e1b
- name: glibmm
buildsystem: meson
builddir: true
config-opts:
- --buildtype=debugoptimized
- -Dbuild-examples=false
sources:
- type: archive
url: https://download.gnome.org/sources/glibmm/2.66/glibmm-2.66.0.tar.xz
sha256: 9e1db7d43d2e2d4dfa2771354e21a69a6beec7c446b711619cf8c779e13a581e
- name: mozjpeg
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_INSTALL_DEFAULT_LIBDIR=lib
- -DENABLE_STATIC:BOOL=OFF
sources:
- type: archive
url: https://github.com/mozilla/mozjpeg/archive/v4.0.1-rc2.tar.gz
sha256: 3dbcfd1345315169996d9ba1b71145db04d1fae2b005a9cd828a984957504df0
- name: rnnoise
config-opts:
- --disable-static
- --disable-examples
- --disable-doc
sources:
- type: git
url: https://gitlab.xiph.org/xiph/rnnoise.git
commit: 7f449bf8bd3b933891d12c30112268c4090e4d59
- name: qtbase
build-options:
arch:
x86_64:
config-opts:
- -reduce-relocations
- -force-debug-info
aarch64:
config-opts:
- -no-reduce-relocations
- -optimize-size
- -opengl
- es2
config-opts:
- -archdatadir
- /app/lib/
- -release
- -opensource
- -confirm-license
- -shared
- -no-separate-debug-info
- -no-strip
- -no-rpath
- -optimized-qmake
- -nomake
- examples
- -nomake
- tests
- -system-harfbuzz
- -system-libjpeg
- -system-libpng
- -system-sqlite
- -system-zlib
- -system-proxies
- -dbus-linked
- -openssl-linked
- -fontconfig
- -accessibility
- -glib
- -icu
- -no-directfb
- -no-linuxfb
- -no-kms
- -no-feature-getentropy
- -no-feature-renameat2
- -no-feature-statx
sources:
- type: archive
url: https://download.qt.io/archive/qt/5.15/5.15.2/submodules/qtbase-everywhere-src-5.15.2.tar.xz
sha256: 909fad2591ee367993a75d7e2ea50ad4db332f05e1c38dd7a5a274e156a4e0f8
- desktop-app-patches-qtbase_5_15_2.json
cleanup:
- /bin
- name: qtwayland
buildsystem: qmake
sources:
- type: archive
url: https://download.qt.io/archive/qt/5.15/5.15.2/submodules/qtwayland-everywhere-src-5.15.2.tar.xz
sha256: 193732229ff816f3aaab9a5e2f6bed71ddddbf1988ce003fe8dd84a92ce9aeb5
- desktop-app-patches-qtwayland_5_15_2.json
- name: qtimageformats
buildsystem: qmake
sources:
- type: archive
url: https://download.qt.io/archive/qt/5.15/5.15.2/submodules/qtimageformats-everywhere-src-5.15.2.tar.xz
sha256: bf8285c7ce04284527ab823ddc7cf48a1bb79131db3a7127342167f4814253d7
- name: qtsvg
buildsystem: qmake
sources:
- type: archive
url: https://download.qt.io/archive/qt/5.15/5.15.2/submodules/qtsvg-everywhere-src-5.15.2.tar.xz
sha256: 8bc3c2c1bc2671e9c67d4205589a8309b57903721ad14c60ea21a5d06acb585e
- name: extra-cmake-modules
buildsystem: cmake-ninja
sources:
- type: archive
url: https://download.kde.org/stable/frameworks/5.81/extra-cmake-modules-5.81.0.tar.xz
sha256: 5f57e4b843069b6098d955051bb2913558d1623fead3f3b95b7017d7e1e35b83
cleanup:
- '*'
- name: plasma-wayland-protocols
buildsystem: cmake-ninja
sources:
- type: archive
url: https://download.kde.org/stable/plasma-wayland-protocols/plasma-wayland-protocols-v1.2.1.tar.xz
sha256: 287b90903f9a7f394c75e75cb187426862eaf64a92f1be7e2ef68e99fd8cbaaa
cleanup:
- '*'
- name: kwayland
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://download.kde.org/stable/frameworks/5.81/kwayland-5.81.0.tar.xz
sha256: de22cad7b4ddaebbfc9a9b60cbd7e41c5de5a943c89b46b077a12b651cfb43a8
- name: webkitgtk
buildsystem: cmake-ninja
build-options:
arch:
x86_64:
cflags: -g1
cxxflags: -g1
config-opts:
- -DCMAKE_BUILD_TYPE=Release
aarch64:
config-opts:
- -DCMAKE_BUILD_TYPE=MinSizeRel
config-opts:
- -DPORT=GTK
- -DUSE_LIBNOTIFY=OFF
- -DUSE_LIBSECRET=OFF
- -DUSE_WOFF2=OFF
- -DUSE_WPE_RENDERER=OFF
- -DENABLE_GAMEPAD=OFF
- -DENABLE_SPELLCHECK=OFF
sources:
- type: archive
url: https://webkitgtk.org/releases/webkitgtk-2.32.1.tar.xz
sha256: 136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917
x-checker-data:
type: html
url: https://webkitgtk.org/releases/
version-pattern: LATEST-STABLE-(\d[\.\d]+\d)
url-template: https://webkitgtk.org/releases/webkitgtk-$version.tar.xz
- name: tg_owt
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DBUILD_SHARED_LIBS=OFF
sources:
- type: git
url: https://github.com/desktop-app/tg_owt.git
commit: e6b6f1c52f4ca7e7111f44fc5d1ded0197f1c72d
cleanup:
- '*'
- name: telegram-desktop
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DTDESKTOP_API_ID=611335
- -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
- -DDESKTOP_APP_USE_PACKAGED_LAZY=ON
- -DDESKTOP_APP_USE_PACKAGED_LAZY_PLATFORMTHEMES=OFF
- -DTDESKTOP_LAUNCHER_BASENAME=org.telegram.desktop
sources:
- type: git
url: https://github.com/telegramdesktop/tdesktop.git
tag: v2.8.1
commit: b8a3746558ca86583e4f6b2aafda7532a5cdd4b5
x-checker-data:
type: json
url: https://api.github.com/repos/telegramdesktop/tdesktop/releases
tag-query: first | .tag_name
timestamp-query: first | .published_at
version-query: $tag | sub("^[vV]"; "")