ubuntu18.04安裝deepin微信

文章內(nè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 '即將開始安裝...'
sudo dpkg -i *.deb
echo '安裝完成,正在自動安裝依賴...'
sudo apt install -fy
rm -vfr /tmp/deepintemp

2. 下載deepin-wechat

http://packages.deepin.com/deepin/pool/non-free/d/deepin.com.wechat/
雙擊即可安裝

3. 中文亂碼問題

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)注冊表

gvim ~/.deepinwine/Deepin-WeChat/system.reg

更改以下兩行內(nèi)容為:

"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

3.2.3 注冊字體

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
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容