文章內(nèi)容主要來(lái)源于
https://blog.csdn.net/hymanjack/article/details/100168300
https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/136
1. 下載安裝wine
#!/bin/bash
mkdir /tmp/deepintemp
cd /tmp/deepintemp
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-19_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-19_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-19_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-19_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-19_i386.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb
echo '準(zhǔn)備添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功颇蜡,準(zhǔn)備刷新apt緩存信息...'
sudo apt update
echo '即將開(kāi)始安裝...'
sudo dpkg -i *.deb
echo '安裝完成,正在自動(dòng)安裝依賴...'
sudo apt install -fy
rm -vfr /tmp/deepintemp
2. 下載deepin-wechat
http://packages.deepin.com/deepin/pool/non-free/d/deepin.com.wechat/
雙擊即可安裝
3. 中文亂碼問(wèn)題
3.1 方案1-使用UTF-8
sudo gvim /opt/deepinwine/tools/run.sh
找到WINE_CMD
修改為:
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"
3.2 方案2-添加微軟雅黑
3.2.1 下載微軟雅黑字體
https://www.lanzous.com/i5wivmd
將下載的字體解壓,然后拷貝到如下路徑
cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
3.2.2 修改系統(tǒng)注冊(cè)表
gvim ~/.deepinwine/Deepin-WeChat/system.reg
更改以下兩行內(nèi)容為:
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"
3.2.3 注冊(cè)字體
gvim msyh_config.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"
運(yùn)行
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit msyh_config.reg