-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcom.tencent.WeChat.yaml
102 lines (91 loc) · 3.41 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
id: com.tencent.WeChat
runtime: org.freedesktop.Platform
runtime-version: '24.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
# Uses legacy StatusNotifier implementation
- --own-name=org.kde.*
# Files
- --filesystem=xdg-download:ro
- --persist=.xwechat
- --persist=xwechat_files
# Hidpi scale
- --env=QT_AUTO_SCREEN_SCALE_FACTOR=1
# Only supports xcb
- --env=QT_QPA_PLATFORM=xcb
modules:
- name: fontconfig
buildsystem: simple
build-commands:
- install -pDm644 "local.conf" -t "/app/etc/fonts/";
- install -pDm644 "70-noto-cjk.conf" -t "/app/etc/fonts/conf.d/";
- install -pDm644 "75-noto-color-emoji.conf" -t "/app/etc/fonts/conf.d/";
# `||:` return a successful exit status
- fc-cache -fsv ||:;
sources:
- type: file
path: patch/local.conf
- type: file
url: https://gitlab.archlinux.org/archlinux/packaging/packages/noto-fonts-cjk/-/raw/5fd3534bf7a6e26c7506dc8f40dcd89f37d35627/70-noto-cjk.conf
sha256: 2417ac0e6720fe8da55ee59f16e36cfe96737bc21432460a322bb0f395e3a521
- type: file
url: https://aur.archlinux.org/cgit/aur.git/plain/75-noto-color-emoji.conf?h=noto-color-emoji-fontconfig&id=9bfcd37bf18de08171360ad6f69373b7b4b63aec
sha256: 9b7d8e078e0f88582afc8f19cd7d928a6bd2b2f418321d1011d4d6f903056942
# Need libtiff.so.5
- name: tiff
only-arches: [aarch64]
buildsystem: cmake-ninja
sources:
- type: archive
url: https://download.osgeo.org/libtiff/tiff-4.4.0.tar.gz
sha256: 917223b37538959aca3b790d2d73aa6e626b688e02dcda272aec24c2f498abed
- name: wechat
buildsystem: simple
build-commands:
- install -Dm755 apply_extra -t $FLATPAK_DEST/bin/
- install -Dm755 wechat.sh $FLATPAK_DEST/bin/wechat
- install -Dm755 dde-file-manager.sh $FLATPAK_DEST/bin/dde-file-manager
- 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
sources:
- type: script
commands:
- bsdtar -O -xf wechat.deb data.* | bsdtar --no-same-owner -xf -
- mv opt/wechat wechat
- rm -rf wechat.deb usr opt
dest-filename: apply_extra
- type: file
path: wechat.sh
- type: file
path: dde-file-manager.sh
- type: file
path: com.tencent.WeChat.metainfo.xml
- type: file
path: com.tencent.WeChat.png
- type: file
path: com.tencent.WeChat.desktop
- type: extra-data
filename: wechat.deb
only-arches: [x86_64]
url: https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.deb
sha256: 16410e0ca7895e5aa375282de5e48b2d5fcb958b063de6b2dcfd02bed190cc01
size: 208373096
- type: extra-data
filename: wechat.deb
only-arches: [aarch64]
url: https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_arm64.deb
sha256: 59805ad7335de5ebb1fd5748d19b2f39761a085a45be30906810756d066277bc
size: 182288252