-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathorg.telegram.desktop.yml
More file actions
367 lines (354 loc) · 12.4 KB
/
org.telegram.desktop.yml
File metadata and controls
367 lines (354 loc) · 12.4 KB
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
id: org.telegram.desktop
runtime: org.gnome.Platform
runtime-version: '49'
sdk: org.gnome.Sdk
command: Telegram
finish-args:
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --device=all
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.gnome.Mutter.IdleMonitor
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=com.canonical.indicator.application
- --talk-name=org.ayatana.indicator.application
- --talk-name=org.sigxcpu.Feedback
- --unset-env=QT_PLUGIN_PATH
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm21
build-options:
append-path: /usr/lib/sdk/llvm21/bin
append-ld-library-path: /usr/lib/sdk/llvm21/lib
cflags: -g1
cxxflags: -g1
ldflags: -Wl,--push-state,--no-as-needed,-lhwy,--pop-state
env:
CMAKE_BUILD_TYPE: None
CMAKE_PREFIX_PATH: /app
modules:
- name: pkg-config
buildsystem: simple
build-commands:
- install -d $FLATPAK_DEST/bin
- |
cat <<EOF > $FLATPAK_DEST/bin/pkg-config
#!/bin/sh
unset PKG_CONFIG_ALLOW_SYSTEM_LIBS
exec /usr/bin/pkg-config "\$@"
EOF
- chmod +x $FLATPAK_DEST/bin/pkg-config
cleanup:
- '*'
- name: implib
buildsystem: simple
build-commands:
- |
install -d $FLATPAK_DEST/lib
mkdir build
cd build
implib() {
LIBFILE=$(basename $1)
LIBNAME=$(basename $1 .so)
../implib-gen.py -q $1
gcc $CFLAGS -c -o $LIBFILE.tramp.o $LIBFILE.tramp.S
gcc $CFLAGS -c -o $LIBFILE.init.o $LIBFILE.init.c
ar rcs $FLATPAK_DEST/lib/$LIBNAME.a $LIBFILE.tramp.o $LIBFILE.init.o
}
implib /usr/lib/$FLATPAK_ARCH-linux-gnu/libgtk-3.so
implib /usr/lib/$FLATPAK_ARCH-linux-gnu/libgdk-3.so
sources:
- type: git
url: https://github.com/yugr/Implib.so.git
commit: ecf7bb51a92a0fb16834c5b698570ab25f9f1d21
cleanup:
- '*'
- name: jinja2
buildsystem: simple
build-commands:
- pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
flit-core --no-build-isolation
- pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
"Jinja2" --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/69/59/b6fc2188dfc7ea4f936cd12b49d707f66a1cb7a1d2c16172963534db741b/flit_core-3.12.0.tar.gz
sha256: 18f63100d6f94385c6ed57a72073443e1a71a4acb4339491615d0f16d6ff01b2
x-checker-data:
type: pypi
name: flit-core
- type: file
url: https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz
sha256: 722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698
x-checker-data:
type: pypi
name: MarkupSafe
- type: file
url: https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz
sha256: 0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d
x-checker-data:
type: pypi
name: Jinja2
cleanup:
- '*'
- name: systemd
buildsystem: meson
builddir: true
config-opts:
- --buildtype=plain
make-args:
- systemd-detect-virt
no-make-install: true
post-install:
- install -d "$FLATPAK_DEST/bin"
- install -D systemd-detect-virt "$FLATPAK_DEST/bin"
sources:
- type: git
url: https://github.com/systemd/systemd.git
commit: ca088a7f89030fced26ee8121c6b587a7e8856c7
tag: v259.4
x-checker-data:
type: json
url: https://api.github.com/repos/systemd/systemd/releases/latest
tag-query: .tag_name
timestamp-query: .published_at
version-query: $tag | sub("^[vV]"; "")
- type: shell
commands:
- >-
sed -i "s/'link_with' : libshared/'link_with' : [libshared_static, libsystemd_static,
libbasic_static]/" meson.build
- name: boost
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=${FLATPAK_DEST} --with-libraries=regex
- ./b2 variant=release link=static runtime-link=shared cxxflags="$CXXFLAGS"
linkflags="$LDFLAGS" -j $FLATPAK_BUILDER_N_JOBS install
sources:
- type: archive
url: https://archives.boost.io/release/1.90.0/source/boost_1_90_0.tar.bz2
sha256: 49551aff3b22cbc5c5a9ed3dbc92f0e23ea50a0f7325b0d198b705e8ee3fc305
x-checker-data:
type: anitya
project-id: 6845
stable-only: true
url-template: https://archives.boost.io/release/$version/source/boost_${major}_${minor}_${patch}.tar.bz2
cleanup:
- '*'
- name: ada
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DBUILD_TESTING=OFF
- -DADA_TOOLS=OFF
sources:
- type: git
url: https://github.com/ada-url/ada.git
commit: 3c84d730f6c6395355d94c620e96e886e7026474
tag: v3.4.3
x-checker-data:
type: json
url: https://api.github.com/repos/ada-url/ada/releases/latest
tag-query: .tag_name
timestamp-query: .published_at
version-query: $tag | sub("^[vV]"; "")
cleanup:
- '*'
- name: protobuf
buildsystem: cmake-ninja
builddir: true
config-opts:
- -Dprotobuf_BUILD_TESTS=OFF
sources:
- type: git
url: https://github.com/protocolbuffers/protobuf.git
commit: 6a6cd88c262ffdb1738167a47d5fcc7a3eb4edac
tag: v34.0
x-checker-data:
type: json
url: https://api.github.com/repos/protocolbuffers/protobuf/releases/latest
tag-query: .tag_name
timestamp-query: .published_at
version-query: $tag | sub("^[vV]"; "")
cleanup:
- '*'
- name: jpegli
buildsystem: cmake-ninja
builddir: true
no-make-install: true
config-opts:
- -DBUILD_TESTING=OFF
- -DJPEGXL_ENABLE_DEVTOOLS=OFF
- -DJPEGXL_ENABLE_TOOLS=OFF
- -DJPEGXL_INSTALL_JPEGLI_LIBJPEG=ON
- -DJPEGXL_ENABLE_DOXYGEN=OFF
- -DJPEGXL_ENABLE_MANPAGES=OFF
- -DJPEGXL_ENABLE_BENCHMARK=OFF
- -DJPEGXL_ENABLE_EXAMPLES=OFF
- -DJPEGXL_ENABLE_JNI=OFF
- -DJPEGXL_ENABLE_SJPEG=OFF
- -DJPEGXL_ENABLE_OPENEXR=OFF
- -DJPEGXL_ENABLE_SKCMS=OFF
- -DJPEGXL_FORCE_SYSTEM_BROTLI=ON
- -DJPEGXL_FORCE_SYSTEM_LCMS2=ON
- -DJPEGXL_FORCE_SYSTEM_HWY=ON
post-install:
- cp "$FLATPAK_BUILDER_BUILDDIR"/_flatpak_build/lib/libjpegli-static.a "$FLATPAK_DEST"/lib/libjpeg.a
- ar rcs "$FLATPAK_DEST"/lib/libjpeg.a "$FLATPAK_BUILDER_BUILDDIR"/_flatpak_build/lib/CMakeFiles/jpegli-libjpeg-obj.dir/jpegli/libjpeg_wrapper.cc.o
sources:
- type: git
url: https://github.com/libjxl/libjxl.git
commit: 332feb17d17311c748445f7ee75c4fb55cc38530
tag: v0.11.2
x-checker-data:
type: json
url: https://api.github.com/repos/libjxl/libjxl/releases/latest
tag-query: .tag_name
timestamp-query: .published_at
version-query: $tag | sub("^[vV]"; "")
- type: file
url: https://github.com/libjxl/libjxl/commit/ee3955b1553bcc10304d45b85dfef9afa9349d72.patch
sha256: 5f8e3aa4fec3812ba17bbbf387a8781785a802642c31b1485d6758959d43f334
- type: shell
commands:
- sed -i 's/offset + t/offset + i/' ee3955b1553bcc10304d45b85dfef9afa9349d72.patch
- patch -p1 -i ee3955b1553bcc10304d45b85dfef9afa9349d72.patch
cleanup:
- '*'
- name: openh264
buildsystem: meson
config-opts:
- --buildtype=plain
- --default-library=static
- -Dtests=disabled
sources:
- type: git
url: https://github.com/cisco/openh264.git
commit: 652bdb7719f30b52b08e506645a7322ff1b2cc6f
tag: v2.6.0
x-checker-data:
type: json
url: https://api.github.com/repos/cisco/openh264/releases/latest
tag-query: .tag_name
timestamp-query: .published_at
version-query: $tag | sub("^[vV]"; "")
cleanup:
- '*'
- name: rnnoise
config-opts:
- --disable-shared
- --disable-examples
- --disable-doc
sources:
- type: archive
url: https://github.com/xiph/rnnoise/releases/download/v0.2/rnnoise-0.2.tar.gz
sha256: 90fce4b00b9ff24c08dbfe31b82ffd43bae383d85c5535676d28b0a2b11c0d37
x-checker-data:
type: json
url: https://api.github.com/repos/xiph/rnnoise/releases/latest
tag-query: .tag_name
timestamp-query: .published_at
version-query: $tag | sub("^[vV]"; "")
url-query: '"https://github.com/xiph/rnnoise/releases/download/\($tag)/rnnoise-\($version).tar.gz"'
- type: shell
commands:
- sed -i 's/os_support.h/common.h/g;s/OPUS_CLEAR/RNN_CLEAR/g' src/vec{,_neon}.h
cleanup:
- '*'
- name: qt
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DBUILD_SHARED_LIBS=OFF
- -DBUILD_WITH_PCH=OFF
- -DQT_BUILD_SUBMODULES=qtbase;qtdeclarative;qtimageformats;qtshadertools;qtsvg;qtwayland
- -DQT_QPA_PLATFORMS=wayland;xcb
- -DFEATURE_glibc_fortify_source=OFF
- -DINPUT_openssl=linked
sources:
- type: archive
url: https://download.qt.io/archive/qt/6.10/6.10.2/single/qt-everywhere-src-6.10.2.tar.xz
sha256: c3df0f0e421130cc52ed81cb712358804471ce9bd2a41d97828f9f5b1bf7fed2
x-checker-data:
type: anitya
project-id: 7927
url-template: https://download.qt.io/archive/qt/$major.$minor/$version/single/qt-everywhere-src-$version.tar.xz
- qtbase.json
- qtwayland.json
cleanup:
- '*'
- name: tg_owt
buildsystem: cmake-ninja
builddir: true
sources:
- type: git
url: https://github.com/desktop-app/tg_owt.git
commit: 5c5c71258777d0196dbb3a09cc37d2f56ead28ab
x-checker-data:
type: json
parent-id: tdesktop-git-0
commit-data-url: >-
"https://github.com/telegramdesktop/tdesktop/raw/\($parent.new.tag//$parent.current.tag)/snap/snapcraft.yaml"
commit-query: >-
.parts.webrtc."source-commit"
version-data-url: >-
"https://api.github.com/repos/desktop-app/tg_owt/commits/\($commit)"
version-query: >-
"desktop-app/tg_owt@\(.sha[0:7])"
timestamp-data-url: >-
"https://api.github.com/repos/desktop-app/tg_owt/commits/\($commit)"
timestamp-query: >-
.commit.committer.date
cleanup:
- '*'
- name: tde2e
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DTD_E2E_ONLY=ON
sources:
- type: git
url: https://github.com/tdlib/td.git
commit: 51743dfd01dff6179e2d8f7095729caa4e2222e9
x-checker-data:
type: json
parent-id: tdesktop-git-0
commit-data-url: >-
"https://github.com/telegramdesktop/tdesktop/raw/\($parent.new.tag//$parent.current.tag)/snap/snapcraft.yaml"
commit-query: >-
.parts.tde2e."source-commit"
version-data-url: >-
"https://api.github.com/repos/tdlib/td/commits/\($commit)"
version-query: >-
"tdlib/td@\(.sha[0:7])"
timestamp-data-url: >-
"https://api.github.com/repos/tdlib/td/commits/\($commit)"
timestamp-query: >-
.commit.committer.date
cleanup:
- '*'
- name: tdesktop
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DTDESKTOP_API_ID=611335
- -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
sources:
- type: git
url: https://github.com/telegramdesktop/tdesktop.git
commit: 4fd4b14fcc1a645a078713ff6d0fd290c761bf79
tag: v6.6.3
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]"; "")
- type: shell
commands:
- sed -i '/-Werror/d' Telegram/ThirdParty/dispatch/cmake/modules/DispatchCompilerWarnings.cmake
cleanup:
- /share/icons/hicolor/512x512@2