Skip to content

Commit

Permalink
fix known bugs; add new support
Browse files Browse the repository at this point in the history
  • Loading branch information
KZ25T committed Jun 16, 2024
1 parent 0301605 commit 0f900dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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` 即可。详细说明和使用方法请参见下文。

---

优点:

Expand All @@ -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
Expand All @@ -43,6 +48,8 @@

然后运行 `sudo systemctl reload apparmor`

- 😕 **Fedora** Fedora 40 暂不能运行。(敬请期待……作者本人只使用 Debian 系,RedHat 系的库有些奇怪,作者可能稍后补充)

## 使用前提

- 需要安装 bwrap(常见发行版都有)
Expand Down
1 change: 1 addition & 0 deletions src/AppRun
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0f900dd

Please sign in to comment.