diff --git a/README.md b/README.md index d904e00..3f22b69 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # 微信 AppImage -使用 AppImage 运行 Linux 原生微信 +使用 AppImage 运行 Linux 原生微信,使用方法非常简单。 + +简单使用方法:从本仓库的 release 下载 `wechat-x86_64.3.AppImage`,下载目录打开终端运行 `chmod a+x wechat-x86_64.3.AppImage`,再运行 `./wechat-x86_64.3.AppImage` 即可。详细说明和使用方法请参见下文。 + +--- 优点: @@ -22,11 +26,12 @@ 适配操作系统(已测试): +> 注:比较新发行版请使用 release 里的 libfuse3 版本,但也有可能只有 libfuse2 能运行。 +> 如果您自行打包,那么最新的 appimagetool 打包结果是 libfuse3 版本,比较老的是 libfuse2 版本。 + - [x] **Debian** Debian 12 可直接运行。 - [x] **Kali Linux** Kali Linux Rolling 可直接运行。 - [x] **Ubuntu** 22.04、24.04 进行下面操作后可以运行。(建议先尝试能否直接运行,不能的再按照下面操作) - - 需要安装:`sudo apt install libfuse2` - - 需要运行:`sudo rm /var/lib/dbus/machine-id && sudo cp /etc/machine-id /var/lib/dbus/machine-id` - 需要把下面内容写入 `/etc/apparmor.d/bwrap`: ```text @@ -43,6 +48,8 @@ 然后运行 `sudo systemctl reload apparmor` +- 😕 **Fedora** Fedora 40 暂不能运行。(敬请期待……作者本人只使用 Debian 系,RedHat 系的库有些奇怪,作者可能稍后补充) + ## 使用前提 - 需要安装 bwrap(常见发行版都有) diff --git a/src/AppRun b/src/AppRun index 59e3af1..ffcdc7e 100755 --- a/src/AppRun +++ b/src/AppRun @@ -85,6 +85,7 @@ bwrap --die-with-parent \ --ro-bind /etc/hosts /etc/hosts \ --ro-bind /etc/ld.so.cache /etc/ld.so.cache \ --ro-bind /etc/localtime /etc/localtime \ + --ro-bind /etc/machine-id /etc/machine-id \ --ro-bind /etc/passwd /etc/passwd \ --ro-bind /etc/resolv.conf /etc/resolv.conf \ --ro-bind $APPDIR/usr/lib/libactivation.so /usr/lib/libactivation.so \