fedora 安装 微信

Author Avatar
半局局局局局
发表:2024-02-24 16:25:00
修改:2024-02-24 16:42:40

添加软件源

sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/home:xuthus5/Fedora_$(rpm -E %fedora)/home:xuthus5.repo

安装前置软件

fedora-deepin-wine6fedora-deepin-wine-helper 是必装的依赖

  • fedora-deepin-wine6 用于驱动原生 wine

  • fedora-deepin-wine-helper 用于驱动打包好的程序。

sudo dnf install fedora-deepin-wine6 fedora-deepin-wine-helper -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

安装微信和企业微信

  • fedora-deepin-wework 企业微信包名

  • fedora-deepin-wechat 微信包名

# 安装 fedora-deepin-wine6 版本的微信
sudo dnf install fedora-deepin-wechat-wine6 -y

修复字体方块问题

方法一

最简单的方法是下载一份已经处理好了的微软雅黑+宋体融合字体

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

WechatWin.dll文件缺失

下载一份额外的依赖包(该包提供低版本的 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

提示 wldap32.dll not found

# 自行下载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

评论