感谢以下项目
https://github.com/web1n/wechat-universal-flatpak
- 打开以下地址,下载.flatpak后缀的文件
https://github.com/web1n/wechat-universal-flatpak/releases
2.在下载目录右键打开终端,输入以下命令安装flatpak
sudo apt-get install flatpak
3.输入以下命令配置
sudo flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo
4.输入以下命令安装微信
flatpak install com.tencent.WeChat.flatpak
5.复制图标
sudo cp /var/lib/flatpak/app/com.tencent.WeChat/current/active/export/share/applications/com.tencent.WeChat.desktop /usr/share/applications/
sudo cp -R /var/lib/flatpak/app/com.tencent.WeChat/current/active/export/share/icons/hicolor/* /usr/share/icons/hicolor/
6.给微信全部目录权限
sudo flatpak override com.tencent.WeChat --filesystem=home