微信配置(更新版) - David-DHC/Ubuntu-22.04 GitHub Wiki

微信配置(更新版):

  • 便于完成中文显示适配,且在文件、图片传输上更加便捷
  • 支持:4k屏幕适配、中文显示适配、双开
  • 问题:进行完以下操作之后,系统仍然有可能自行复原。
  1. 克隆deepin仓库到本地:git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git
  2. 在文件夹中执行bash install_2.8.22.sh进行安装
  3. 点击此链接下载deepin-wechat 2.6.8.65版本
  4. 在下载到的文件夹中执行sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb以安装微信

解决微信4k屏幕适配的方法

参考资料

  1. 执行sudo apt-get install winetricks安装winetricks(或许这一步可以省略?)
  2. 执行env WINEPREFIX="$HOME/.deepinwine/Deepin-WeChat" /usr/bin/deepin-wine winecfg打开wine configuration
  3. 在graphics中调节dpi。对于4k屏幕,大概需要调节到240左右。

解决中文适配的方法

  1. sudo apt-get install fonts-wqy-microhei即可。

微信双开的解决办法

参考资料

  1. 首先确保已经能够正确打开一个微信。
  2. 进入~/.deepinwine目录,复制Deepin-WeChat文件夹到Deepin-WeChat2。
  3. 在终端中执行sudo su进入超级管理员模式,分别修改/opt/deepinwine/apps/Deepin-WeChat/run.sh和/opt/deepinwine/tools/run_v2.sh的内容:
# 以下是修改后/opt/deepinwine/apps/Deepin-WeChat/run.sh的内容
BOTTLENAME="Deepin-WeChat"
APPVER="2.6.8.65deepin0"
EXEC_PATH="c:/Program Files/Tencent/WeChat/WeChat.exe"
if [ -n "$EXEC_PATH" ];then
 /opt/deepinwine/tools/run_v2.sh $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
else
 /opt/deepinwine/tools/run_v2.sh $BOTTLENAME $APPVER "uninstaller.exe" "$@"
fi

BOTTLENAME="Deepin-WeChat2"
APPVER="2.6.8.65deepin0"
EXEC_PATH="c:/Program Files/Tencent/WeChat/WeChat.exe"
if [ -n "$EXEC_PATH" ];then
 /opt/deepinwine/tools/run_v2.sh $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
else
 /opt/deepinwine/tools/run_v2.sh $BOTTLENAME $APPVER "uninstaller.exe" "$@"
fi


# 以下是对/opt/deepinwine/tools/run_v2.sh的修改。
# 检索这一行代码
/opt/deepinwine/tools/kill.sh "$name" block
# 并将其删除即可。