友根 發表於 2020-1-28 20:13:00

install Wine + WeChat in Fedora 31

<p>install Wine + WeChat in Fedora 31</p>

<p><br>
dnf -y install dnf-plugins-core<br>
dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/31/winehq.repo<br>
dnf -y install winehq-stable</p>

<p>cd /usr/bin/<br>
wget -c https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks<br>
chmod +x winetricks</p>

<p>dnf install cabextract wine-mono *winbind*</p>

<p>mkdir /opt/tools/wine/; cd /opt/tools/wine/<br>
wget -c https://dldir1.qq.com/weixin/Windows/WeChatSetup.exe</p>

<p>export WINEARCH=win32 WINEPREFIX=/opt/wine/tencent<br>
winecfg&nbsp;&nbsp; &nbsp;# 选择 windows 7<br>
winetricks riched20 richtx32 corefonts<br>
wine /opt/tools/wine/WeChatSetup.exe&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# 安装 WeChat</p>

<p><br>
# 解决字体发虚问题<br>
winecfg ---&gt; 显示 ---&gt; 屏幕分辨率 ---&gt; 120 dpi</p>

<p><img alt="" class="has lazyload" data-src="https://img-blog.csdnimg.cn/20200128201936297.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3p0Z3Vhbmc=,size_16,color_FFFFFF,t_70"></p>

<p>&nbsp;</p>

<p>#---------------------------------------------------------------------------------------<br>
重启系统 或 注销 或 执行如下命令后重启微信<br>
&nbsp;&nbsp; &nbsp;pkill wineserver<br>
&nbsp;&nbsp; &nbsp;pkill winedevice.exe<br>
&nbsp;&nbsp; &nbsp;ps aux|grep wine<br>
&nbsp;&nbsp; &nbsp;kill -9 25610&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# root 25610&nbsp; C:\windows\system32\winedevice.exe<br>
#---------------------------------------------------------------------------------------</p>

<p>&nbsp;</p><br><br>
来源:https://www.cnblogs.com/ztguang/p/12644251.html
頁: [1]
查看完整版本: install Wine + WeChat in Fedora 31