目前维护了 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\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"
注册表注册之
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源包提供者