引言
我一直都在fedora这个发行版下工作,但社区没有像样的微信/企业微信rpm包提供,导致我只能通过开windows虚拟机的方式,来进行工作和交流,这让我十分痛苦。遂有了此篇。
添加软件源
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/home:xuthus5/Fedora_$(rpm -E %fedora)/home:xuthus5.repo
安装前置软件
fedora-deepin-wine5
和fedora-deepin-wine-helper
是必装的依赖
fedora-deepin-wine5
用于驱动原生wine
fedora-deepin-wine-helper
用于驱动打包好的程序。
sudo dnf install fedora-deepin-wine5 fedora-deepin-wine-helper -y
安装微信和企业微信
fedora-deepin-wework
企业微信包名fedora-deepin-wechat
微信包名
sudo dnf install fedora-deepin-wework fedora-deepin-wechat -y
目前维护的软件列表
包名 | 描述 | 版本 |
---|---|---|
fedora-deepin-wechat | 微信 | 3.4.0.38 |
fedora-deepin-wework | 企业微信 | 3.1.12.2 |
fedora-deepin-qq | 9.3.2.20 | |
fedora-deepin-tim | TIM | 3.3.5.3 |
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 |
修复字体方块问题
下载 微软雅黑 字体 放置到 ~/.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
如何打包
参考我的此篇文章: 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源包提供者