目前維護了fedora 下的wechat, wxwork, deepin-wine6-stable, deepin-wine-helper 等.
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/home:xuthus5/Fedora_ $( rpm -E %fedora ) /home:xuthus5.repo
註: 目前不再維護Fedora release version < 35
的版本.
fedora-deepin-wine6
和fedora-deepin-wine-helper
是必裝的依賴
fedora-deepin-wine6
用來驅動原生wine
fedora-deepin-wine-helper
用於驅動打包好的程式。sudo dnf install fedora-deepin-wine6 fedora-deepin-wine-helper -y
# 安装 fedora-deepin-wine6 版本的微信
sudo dnf install fedora-deepin-wechat-wine6 -y
包名 | 描述 | 版本 | 相容wine5 | 相容wine6+ |
---|---|---|---|---|
fedora-deepin-wine6 | deepin-wine6 | - | 是 | 是 |
fedora-deepin-wechat-wine6 | 微信 | 3.9.0 | 是 | 是 |
fedora-deepin-wework-wine6 | 企業微信 | 3.1.12.2 | 是 | 是 |
fedora-deepin-189cloud | 天翼雲盤 | 6.3.8.1 | 是 | 否 |
fedora-deepin-iqiyi | 愛奇藝 | 7.6.114.2 | 是 | 否 |
fedora-deepin-pvz | 植物大戰殭屍 | 1.0.0.1 | 是 | 否 |
fedora-deepin-kugou | 酷狗音樂 | 9.1.44.1 | 是 | 否 |
fedora35+上對libpcap
以及openldap
進行了更新,導致無法對原生的deepin-wine
進行移植。本倉庫的fedora-deepin-wine6
對其中基礎庫依賴做了部分替換,由於無法對其影響作出正確的評估,所以使用時有一定軟體崩壞風險,由此產出的一系列問題,本人概不負責。
對於安裝後常規的字體等問題請自行解決。
最簡單的方法是下載一份已經處理好了的微軟雅黑+宋體融合字體
wget https://images.xuthus.cc/images/fake_simsun.ttc
cp fake_simsun.ttc ~ /.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/
# 微信重启之
/opt/apps/com.qq.weixin.deepin/files/run.sh
自訂需要配置的字體
下載微軟雅黑字體放置到~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/
下
cp /path/to/MSYH.TTC ~ /.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/msyh.ttc
設定deepin-wine5下的系統預設字體
vim ~ /.deepinwine/Deepin-WeChat/system.reg
" MS Shell Dlg " = " msyh "
" MS Shell Dlg 2 " = " msyh "
vim ~ /.deepinwine/Deepin-WeChat/msyh.reg
REGEDIT4
[HKEY_LOCAL_MACHINE S oftware M icrosoft W indows NT C urrentVersion F ontLink S ystemLink]
" 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 "
註冊表註冊之
WINEPREFIX= ~ /.deepinwine/Deepin-WeChat/ deepin-wine5 regedit ~ /.deepinwine/Deepin-WeChat/system.reg
WINEPREFIX= ~ /.deepinwine/Deepin-WeChat/ deepin-wine5 regedit ~ /.deepinwine/Deepin-WeChat/msyh.reg
下載一份額外的依賴套件(該套件提供低版本的deepin-wine6 依賴函式庫)
https://software.opensuse.org//download.html?project=home%3Axuthus5&package=fedora-deepin-extra-lib
# 忽略冲突安装
sudo rpm -ivh --force fedora-deepin-extra-lib-0.0.1-2.1.x86_64.rpm
# 你也可以直接线上安装
sudo rpm -ivh --force https://download.opensuse.org/repositories/home:/xuthus5/Fedora_ $( rpm -E %fedora ) /x86_64/fedora-deepin-extra-lib-0.0.1-7.1.x86_64.rpm
# 必须按照如下步骤进行软链接
cd /usr/lib/
sudo ln -sf liblber-2.4.so.2.10.10 liblber-2.4.so.2
sudo ln -sf libldap_r-2.4.so.2.10.10 libldap_r-2.4.so.2
sudo ln -sf libldap_r-2.4.so.2 libldap-2.4.so.2
# 下载wine旧版本的wldap32.dll.so
wget -O wldap32.dll.so https://images.xuthus.cc/images/akrHXou_wldap32.dll.so
sudo mv wldap32.dll.so /opt/deepin-wine6-stable/lib/wldap32.dll.so
接下來你可以執行/opt/apps/com.qq.weixin.deepin/files/run.sh
重啟微信。
wine提供WINEDEBUG
環境變數可供你在運行時取得不同通道channel
的日誌資訊。 你只需要在你需要運行的軟體前加入WINEDEBUG=${log_level}+${channel}
即可。 詳見:WineHQ:Debug Channels
舉個例子:
# 打印微信运行时所有通道的error级别信息
# will turn on WARN messages for all channels, in addition to already enabled ERR and FIXME messages.
WINEDEBUG=warn+all /opt/apps/com.qq.weixin.deepin/files/run.sh
# 自行下载wine旧版本的wldap32.dll.so
wget https://images.xuthus.cc/images/akrHXou_wldap32.dll.so
sudo mv akrHXou_wldap32.dll.so /opt/deepin-wine6-stable/lib/wldap32.dll.so
參考我的這篇文章: fedora 打包wechat RPM 包
專案網址是: https://build.opensuse.org/project/show/home:xuthus5,建置檔案和原始碼包都裸露在上面。
OBS 整個的打包流程依賴openSUSE Build Service
建置服務。
vufa/deepin-wine-wechat-arch wechat源包提供者
deepin-wine-helper deepin-wine-helper來源包提供者
com.qq.weixin.work.deepin wework來源包提供者
deepin-wine5 deepin-wine5源包提供者