1.安装前准备
安装必要的工具及deepin-wine依赖
sudo apt install wget g++ git #如已安装可自行跳过
下载本文章所需安装包:下载地址
2.安装deepin-wine
安装包:wszqkzqk-deepin-wine-for-ubuntu-master.zip
#unzip wszqkzqk-deepin-wine-for-ubuntu-master.zip #解压安装包
git clone "https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git"
cd deepin-wine-for-ubuntu #切换到下载目录
sudo ./install.sh #执行安装
deepin-wine容器安装完成,下面进行微信的安装。
3.安装Deep-wine微信
安装包:deepin.com.wechat_2.6.8.65deepin0_i386.deb
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb #安装微信
sudo apt install libjpeg62:i386 #解决微信无法查看发送图片问题
4.解决中文模式乱码问题
微软雅黑字体包:msyh.ttc
1)修改系统注册表(不明确是否可跳过)
gedit ~/.deepinwine/Deepin-WeChat/system.reg
更改以下两行内容为:
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"
2)字体注册
#复制字体
cp ~/Downloads/msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
gedit ~/.deepinwine/Deepin-WeChat/font.reg
在文件font.reg内添加如下内容:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="msyh.ttc"
"Microsoft Sans Serif"="msyh.ttc"
"MS Sans Serif"="msyh.ttc"
"Tahoma"="msyh.ttc"
"Tahoma Bold"="msyhbd.ttc"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
"Arial Black"="msyh.ttc"
3)注册
WINEPREFIX=~/.deepinwine/Deepin-WeChat/ deepin-wine regedit ~/.deepinwine/Deepin-WeChat/font.reg
4)完成测试
所有程序中找到微信登录发送中文测试