本文介绍在Deepin V20系统下安装deepin-wine5的方法,并在deepin-wine5里安装微信,可安装微信2.9.5版本。其它版本,如Deepin 15.11版可参考。
操作步骤 1.安装deepin-wine5 sudo apt update sudo apt install deepin-wine5 步骤2.安装微信 env WINEPREFIX=~/Deepin-Wechat5 deepin-wine5 WeChatSetup.exe 注:微信下载地址:https://weixin.qq.com/ 更新方法参考:把Windows下微信文件夹复制到Deepin-WeChat目录以更新微信。 步骤3.配置riched20(如果不配置,输入框有问题) env WINEPREFIX=~/Deepin-Wechat5 deepin-wine5 winecfg 选择函数库,添加riched20,编辑为原装先于内建,然后copy老版deepin-wine wechat目录里的: cp ~/.deepinwine/Deepin-WeChat/drive_c/windows/system32/riched20.dll ~/Deepin-Wechat5/drive_c/windows/system32/ 步骤4.配置一个desktop文件 新建run.sh在~/Deepin-Wechat5下并且给以执行权限: touch ~/Deepin-Wechat5/run.sh chmod +x ~/Deepin-Wechat5/run.sh 在run.sh里输入如下,这里路径的是我写的是绝对路径,建议绝对路径,到该目录下pwd一下即可: #!/bin/bash env WINEPREFIX=/home/sdli/Deepin-Wechat5 deepin-wine5 '/home/sdli/Deepin-Wechat5/drive_c/Program Files/Tencent/WeChat/WeChat.exe' 在下建立desktop文件: sudo touch /usr/share/applications/wechat-new.desktop sudo dedit /usr/share/applications/wechat-new.desktop 在文本中输入以下内容,路径也替换掉: #!/usr/bin/env xdg-open [Desktop Entry] Encoding=UTF-8 Type=Application X-Created-By=Deepin WINE Team Categories=chat; Icon=com.qq.weixin.deepin Exec=/home/sdli/Deepin-Wechat5/run.sh Name=WeChat Name[zh_CN]=微信 Comment=Tencent WeChat Client on Deepin Wine StartupWMClass=WeChat.exe MimeType= X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher X-Deepin-AppID=com.qq.weixin.deepin 注:经过测试,已经安装成功,测试发图片和发文件没有问题,小程序也正常。
相关主题 |