-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathcom.tencent.WeChat.yaml
149 lines (136 loc) · 4.9 KB
/
com.tencent.WeChat.yaml
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
id: com.tencent.WeChat
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: wechat
separate-locales: false
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --socket=pulseaudio
- --device=all
# File Manager
- --talk-name=org.freedesktop.FileManager1
# System tray icon
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.kde.*
# Screenshot
# - --talk-name=org.gnome.Shell.Screenshot
# - --talk-name=org.kde.kwin.Screenshot
# Files
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-pictures
- --persist=.xwechat
- --persist=xwechat_files
# Font config
- --filesystem=xdg-config/fontconfig:ro
# IME
# - --env=QT_IM_MODULE=
# Hidpi scale
- --env=QT_AUTO_SCREEN_SCALE_FACTOR=1
# Fix `Could not find the Qt platform plugin "wayland"`
- --unset-env=QT_QPA_PLATFORM
cleanup:
- /include
- /lib/pkgconfig
- /man
- /share/doc
- /share/gtk-doc
- /share/man
- /share/pkgconfig
- '*.la'
- '*.a'
modules:
# required by wechat
- name: bzip2
buildsystem: simple
build-commands:
- make -f Makefile-libbz2_so
- install -D libbz2.so.1.0.8 $FLATPAK_DEST/lib/libbz2.so.1.0.8
- ln -s /app/lib/libbz2.so.1.0.8 $FLATPAK_DEST/lib/libbz2.so.1.0
sources:
- type: archive
url: https://github.com/opencor/bzip2/archive/refs/tags/bzip2-1.0.8.tar.gz
sha256: db106b740252669664fd8f3a1c69fe7f689d5cd4b132f82ba82b9afba27627df
x-checker-data:
type: anitya
project-id: 237
url-template: https://github.com/opencor/bzip2/archive/refs/tags/bzip2-$version.tar.gz
# required by wechat arm64 https://github.com/web1n/wechat-universal-flatpak/issues/70
- name: libtiff5
buildsystem: cmake
only-arches: [aarch64]
sources:
- type: archive
url: https://download.osgeo.org/libtiff/tiff-4.4.0.tar.gz
sha256: 917223b37538959aca3b790d2d73aa6e626b688e02dcda272aec24c2f498abed
- name: fontconfig
buildsystem: simple
build-commands:
- install -Dm644 local.conf -t $FLATPAK_DEST/etc/fonts/
- install -Dm644 70-noto-cjk.conf -t $FLATPAK_DEST/etc/fonts/conf.d/
- install -Dm644 75-noto-color-emoji.conf -t $FLATPAK_DEST/etc/fonts/conf.d/
sources:
- type: file
path: fontconfig/local.conf
- type: file
path: fontconfig/75-noto-color-emoji.conf
- type: file
url: https://gitlab.archlinux.org/archlinux/packaging/packages/noto-fonts-cjk/-/raw/5fd3534bf7a6e26c7506dc8f40dcd89f37d35627/70-noto-cjk.conf
sha256: 2417ac0e6720fe8da55ee59f16e36cfe96737bc21432460a322bb0f395e3a521
- name: wechat
buildsystem: simple
build-commands:
- install -Dm644 com.tencent.WeChat.metainfo.xml -t $FLATPAK_DEST/share/metainfo
- install -Dm644 com.tencent.WeChat.png -t $FLATPAK_DEST/share/icons/hicolor/256x256/apps
- install -Dm644 com.tencent.WeChat.desktop -t $FLATPAK_DEST/share/applications
- install -D apply_extra.sh $FLATPAK_DEST/bin/apply_extra
- install -D wechat.sh $FLATPAK_DEST/bin/wechat
- install -D dde-file-manager.sh $FLATPAK_DEST/bin/dde-file-manager
sources:
- type: script
dest-filename: apply_extra.sh
commands:
- export LC_ALL=C
- bsdtar --to-stdout -xf wechat.deb data.* | bsdtar -xf -
- mv opt/wechat -T wechat
- rm -r wechat.deb opt usr
- type: extra-data
url: https://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1/pool/main/deb/wechat/extra/1/wechat_4.0.1.7_amd64.deb
sha256: 3ca579b7cb2df40135c266d13c96514cc464249c3bb198966b70dccac2bff53d
filename: wechat.deb
size: 235065668
only-arches: [x86_64]
x-checker-data:
type: debian-repo
package-name: wechat
root: https://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1
dist: default
component: all
is-main-source: true
- type: extra-data
url: https://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1/pool/main/deb/wechat/extra/1/wechat_4.0.1.7_arm64.deb
sha256: 3ff6057d2978bbb5a7e94e3563449b2ecb6323025dd172daefce2ce75985690d
filename: wechat.deb
size: 212722600
only-arches: [aarch64]
x-checker-data:
type: debian-repo
package-name: wechat
root: https://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1
dist: default
component: all
is-main-source: true
- type: file
path: dde-file-manager.sh
- type: file
path: wechat.sh
- type: file
path: com.tencent.WeChat.metainfo.xml
- type: file
path: com.tencent.WeChat.png
- type: file
path: com.tencent.WeChat.desktop