The WeChat container ( com.qq.weixin.deepin
) packaged by Deepin is transplanted to Archlinux, including a customized running script, and the WeChat installation package is replaced with the latest official version
v3.5.0.46-2
, deepin-wine-wechat
uses the AUR warehouse deepin-wine6-stable by default and no longer relies on wine
. Some cleaning operations can be performed to keep the system clean. For specific reference: From wine
/ deepin-wine 2.x
migration
deepin-wine
wine
/ deepin-wine 2.x
deepin-wine-wechat
relies on some 32-bit libraries in the Multilib
warehouse. Archlinux does not enable the Multilib
warehouse by default. You need to edit /etc/pacman.conf
, uncomment the corresponding line and update the local database (Archlinux wiki):
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
# [multilib-testing]
# Include = /etc/pacman.d/mirrorlist
- #[multilib]
- #Include = /etc/pacman.d/mirrorlist
+ [multilib]
+ Include = /etc/pacman.d/mirrorlist
Execute after saving
sudo pacman -Sy
wine
has not yet implemented, this will cause some functions to be unavailable. Before installation, select an appropriate version based on the compatibility record.
The following three installation methods have the same effect, just choose one.
Added to AUR deepin-wine-wechat, can be installed using yay
or yaourt
:
yay -S deepin-wine-wechat
ArchLinux installation package automatically built by GitHub Action in Docker container countstarlight/makepkg
Download the installation package with the suffix .pkg.tar.xz
or .pkg.tar.zst
on the GitHub Release page and install it using pacman
:
sudo pacman -U #下载的包名
The .md5
file is used to verify package integrity:
md5sum -c * .md5
git clone https://github.com/vufa/deepin-wine-wechat-arch.git
cd deepin-wine-wechat-arch
makepkg -si
After the installation is completed using one of the above three installation methods, run the WeChat shortcut created in the application menu. The first run will use the WeChat installation package to install it.
deepin-wine-wechat
accordingly ( /opt/apps/com.qq.weixin.deepin/files/run.sh
):
EXEC_PATH= " c:/Program Files/Tencent/WeChat/WeChat.exe "
Change to the modified installation path, otherwise it will only be able to run for the first time after installation.
自动更新
of WeChat in设置
. When WeChat is started, it will check for updates and load the automatic update program. Since WeChat's automatic update program is blocked by default, the update program cannot be found and cannot be started.
Dpi, system version, directory mapping, etc. can be set in winecfg
. The command to open winecfg
is:
/opt/apps/com.qq.weixin.deepin/files/run.sh winecfg
WeChat version | wine | compatibility | Remark | deepin-wine | compatibility | Remark |
---|---|---|---|---|---|---|
3.9.0.28-2~ | 6.0.0.42-1 | part | Screenshot is not available, there is a problem with the built-in browser (#225) | |||
3.8.0.41~3.8.1.26 | 6.0.0.39-1 | part | Screenshot is not available, there is a problem with the built-in browser (#225) | |||
3.7.0.30~3.7.6.44 | 6.0.0.24-1 | part | Screenshots and emoticons are not available, there is a problem with the built-in browser (#225) | |||
3.5.0.46~3.7.0.30 | 6.0.0.24-1 | part | Mini programs and public accounts are available, but screenshots (#192) and emoticons are not available (#177) | |||
3.3.0.93~3.5.0.46 | 5.0.16-1 | support | ||||
3.2.1.141~3.2.1.154 | 6.6 | Screenshot function is not available: #87 | 5.0.16-1 | support | ||
3.2.1.127 | 6.5 | part | Group chat crashes & screenshot function is unavailable: #87 | 5.0.16-1 | support | |
3.1.0.41~3.1.0.72 | 5.22~6.0 | part | Screenshot function is not available: #73 | 5.0.16-1 | support | |
3.0.0.57 | 5.22 | Not supported | WeChat installer cannot start: #92 | 5.0.16-1 | support | |
3.0.0.57 | 5.19 | support | 2.18_24-3 | support | ||
2.8.0.106~2.9.5.56 | 4.19~5.13 | part | Problem sending pictures: #42 | 2.18_22-3 | part | Problem sending pictures: #42 |
2.7.1.82~2.7.1.88 | 4.19+ | support | ||||
2.7.1.82~2.7.1.88 | 4.17~4.18 | part | Cannot use Chinese input method | 2.18_18-2 | Not supported | crash |
2.6.8.65 | 4.16 | support | 2.18_18-2 | support |
deepin-wine
v3.5.0.46-2
, deepin-wine-wechat
uses the AUR warehouse deepin-wine6-stable by default. There is no need to perform any switching operations. For previous versions, you can view the old version of the README.
For previous versions, you can view the old README.
wine
/ deepin-wine 2.x
After updating to deepin-wine-wechat v3.5.0.46-2
and later versions, the dependency changes to deepin-wine6-stable
.
If no other applications are using wine
, deepin-wine 2.x
and deepin-wine5
at this time, you can safely uninstall wine
, deepin-wine 2.x
, deepin-wine5
and their dependencies:
# 卸载 deepin-wine 2.x (如果有)
sudo pacman -S lib32-freetype2 #用原版替换lib32-freetype2-infinality-ultimate
sudo pacman -Rns deepin-wine xsettingsd # 卸载 deepin-wine 2.x
# 卸载 deepin-wine5 (如果有)
sudo pacman -Rns deepin-wine5
# 卸载 wine (如果有)
sudo pacman -Rns wine wine-mono wine-gecko
At the same time, since deepin's package no longer contains deepin-wine-helper
, the AUR warehouse deepin-wine-helper is now used instead. The previous deepin-wine-helper
can be deleted:
rm -rf $HOME /.deepinwine/deepin-wine-helper
No matter which method is used to install and uninstall:
sudo pacman -Rns deepin-wine-wechat
When uninstalling, the entire WINEPREFIX
environment in the user directory will be deleted. The path is: ~/.deepinwine/Deepin-WeChat
Data saved locally by WeChat will not be deleted, such as data saved under user documents (default: ~/Documents/WeChat Files
)
The font folder of deepin-wine-wechat
is: $HOME/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
After testing, the display effect of微软雅黑
disguised as宋体(simsun)
is the best. For details, please refer to bbs.deepin.org and put fake_simsun.ttc
in the font folder.
Refer to deepin-wine-wechat-arch#186
You can install deepin-wine-wechat
's optional dependency noto-fonts-sc (only the simplified Chinese fonts in noto-fonts-cjk
are included):
yay -S noto-fonts-sc
Or install noto-fonts-cjk
and configure it according to ArchWiki
For previous versions, you can view the old README.
Open winecfg
with reference to the settings and modify the dpi in the Graphics
tab, such as changing it to 192
This modification will be reset after updating or reinstalling. If you want to retain the dpi setting after updating, you can add an environment variable.
According to deepin-wine-wechat-arch#173, method provided by abcfy2
Edit /etc/environment
and add:
DEEPIN_WINE_SCALE=1.25
1.25
is the scaling ratio. For calculation methods and other precautions, please refer to deepin-wine-wechat-arch#173(comment)
Install GNOME plug-ins: AppIndicator and KStatusNotifierItem Support
For previous versions, you can view the old README.
Run command:
/opt/apps/com.qq.weixin.deepin/files/run.sh -w
You can refer to deepin-wine-wechat-arch#96 and deepin-wine-wechat-arch#263 to save this command in the script and add it to the global shortcut keys for easy use.
provided by thep0y
If there is already a running instance when clicking the icon, an incorrect kill will occur. The reason is that in /opt/deepinwine/tools/kill.sh
:
get_tray_window ()
{
# get_tray_window 是一个基于 python2 写的脚本,
# python2 已是被扔进历史垃圾堆的产物,这个垃圾在
# debian 10 中是关键组件,但在 Archlinux 中却
# 没有必要再安装这个垃圾。
$SHELL_DIR /get_tray_window | grep window_id: | awk -F: ' {print $2} '
}
We need to install a dependency:
sudo pacman -S dbus-python
Then modify the content of the script /opt/deepinwine/tools/get_tray_window
to the following code:
#!/usr/bin/env python
def get_tray_window ():
try :
import dbus
except ImportError :
return False
bus = dbus . SessionBus ()
traymanager = bus . get_object ( "com.deepin.dde.TrayManager" , "/com/deepin/dde/TrayManager" )
windows = traymanager . Get ( "com.deepin.dde.TrayManager" , "TrayIcons" )
str = "window_id:"
for i in range ( len ( windows )):
str += '{:#x} ' . format ( windows [ i ])
print ( str )
if __name__ == "__main__" :
get_tray_window ()
After saving and exiting, clicking the icon will not exit the original instance, but will bring up the original instance window.