mirror of
https://github.com/nickrunning/wechat-selkies.git
synced 2026-05-09 00:24:09 +00:00
feat: improve container configuration management and user experience
- Add automatic config version control for seamless upgrades - Update autostart script to use wechat-start.sh for better initialization - Add comprehensive WeChat management scripts (start, restart, unminimize) - Enhance right-click menu with WeChat restart and restore functionality - Improve Dockerfile cleanup process for smaller image size - Add volume mounting examples in documentation for data persistence - Include upgrade troubleshooting notes for openbox configuration - Add Star History chart and additional reference links This update ensures users get the latest menu configurations automatically without manual intervention during container updates.
This commit is contained in:
@@ -30,7 +30,14 @@ RUN apt-get update && \
|
|||||||
libfontconfig1 libdbus-1-3 libnss3 libx11-xcb1
|
libfontconfig1 libdbus-1-3 libnss3 libx11-xcb1
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get purge -y --autoremove
|
||||||
|
RUN apt-get autoclean && \
|
||||||
|
rm -rf \
|
||||||
|
/config/.cache \
|
||||||
|
/config/.npm \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/var/tmp/* \
|
||||||
|
/tmp/*
|
||||||
|
|
||||||
# Install WeChat based on target architecture
|
# Install WeChat based on target architecture
|
||||||
RUN case "$TARGETPLATFORM" in \
|
RUN case "$TARGETPLATFORM" in \
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
1. **直接使用已构建的镜像进行快速部署**
|
1. **直接使用已构建的镜像进行快速部署**
|
||||||
```bash
|
```bash
|
||||||
docker run -it -p 3001:3001 ghcr.io/nickrunning/wechat-selkies:latest
|
docker run -it -p 3001:3001 -v ./config:/config ghcr.io/nickrunning/wechat-selkies:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **访问微信**
|
2. **访问微信**
|
||||||
@@ -81,6 +81,8 @@ docker run -it -p 3001:3001 ghcr.io/nickrunning/wechat-selkies:latest
|
|||||||
|
|
||||||
- `./config:/config`: 微信配置和数据持久化目录
|
- `./config:/config`: 微信配置和数据持久化目录
|
||||||
|
|
||||||
|
> 如果升级后右键菜单缺少 `WeChat` 相关选项,请先清空本地挂载目录下的openbox目录(如`./config/.config/openbox`)。
|
||||||
|
|
||||||
## 高级配置
|
## 高级配置
|
||||||
|
|
||||||
### 硬件加速
|
### 硬件加速
|
||||||
@@ -191,3 +193,8 @@ docker-compose logs -f wechat-selkies
|
|||||||
- [微信官方网站](https://weixin.qq.com/)
|
- [微信官方网站](https://weixin.qq.com/)
|
||||||
- [Selkies WebRTC](https://github.com/selkies-project)
|
- [Selkies WebRTC](https://github.com/selkies-project)
|
||||||
- [LinuxServer.io](https://github.com/linuxserver)
|
- [LinuxServer.io](https://github.com/linuxserver)
|
||||||
|
- [xiaoheiCat/docker-wechat-sogou-pinyin](https://github.com/xiaoheiCat/docker-wechat-sogou-pinyin)
|
||||||
|
|
||||||
|
## Star History
|
||||||
|
|
||||||
|
[](https://www.star-history.com/#nickrunning/wechat-selkies&Date)
|
||||||
11
README_en.md
11
README_en.md
@@ -31,7 +31,7 @@ This project packages the official WeChat Linux client in a Docker container, en
|
|||||||
|
|
||||||
1. **Direct deployment using pre-built images**
|
1. **Direct deployment using pre-built images**
|
||||||
```bash
|
```bash
|
||||||
docker run -it -p 3001:3001 ghcr.io/nickrunning/wechat-selkies:latest
|
docker run -it -p 3001:3001 -v ./config:/config ghcr.io/nickrunning/wechat-selkies:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Access WeChat**
|
2. **Access WeChat**
|
||||||
@@ -81,6 +81,8 @@ Configure the following environment variables in `docker-compose.yml`:
|
|||||||
|
|
||||||
- `./config:/config`: WeChat configuration and data persistence directory
|
- `./config:/config`: WeChat configuration and data persistence directory
|
||||||
|
|
||||||
|
> Note: If the right-click menu lacks `WeChat` related options after an upgrade, please clear the `openbox` directory in the local mounted directory (e.g., `./config/.config/openbox`).
|
||||||
|
|
||||||
## Advanced Configuration
|
## Advanced Configuration
|
||||||
|
|
||||||
### Hardware Acceleration
|
### Hardware Acceleration
|
||||||
@@ -191,4 +193,9 @@ For more information about GPL-3.0 license, please visit: https://www.gnu.org/li
|
|||||||
|
|
||||||
- [WeChat Official Website](https://weixin.qq.com/)
|
- [WeChat Official Website](https://weixin.qq.com/)
|
||||||
- [Selkies WebRTC](https://github.com/selkies-project)
|
- [Selkies WebRTC](https://github.com/selkies-project)
|
||||||
- [LinuxServer.io](https://github.com/linuxserver)
|
- [LinuxServer.io](https://github.com/linuxserver)
|
||||||
|
- [xiaoheiCat/docker-wechat-sogou-pinyin](https://github.com/xiaoheiCat/docker-wechat-sogou-pinyin)
|
||||||
|
|
||||||
|
## Star History
|
||||||
|
|
||||||
|
[](https://www.star-history.com/#nickrunning/wechat-selkies&Date)
|
||||||
@@ -1 +1 @@
|
|||||||
wechat
|
/scripts/wechat/wechat-start.sh
|
||||||
|
|||||||
8
root/defaults/menu.xml
Normal file
8
root/defaults/menu.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<openbox_menu xmlns="http://openbox.org/3.4/menu">
|
||||||
|
<menu id="root-menu" label="MENU">
|
||||||
|
<item label="xterm" icon="/usr/share/pixmaps/xterm-color_48x48.xpm"><action name="Execute"><command>/usr/bin/xterm</command></action></item>
|
||||||
|
<item label="WeChat" icon="/usr/share/icons/hicolor/48x48/apps/wechat.png"><action name="Execute"><command>/scripts/wechat/wechat-restart.sh</command></action></item>
|
||||||
|
<item label="Restore WeChat" icon="/usr/share/icons/hicolor/48x48/apps/wechat.png"><action name="Execute"><command>/scripts/wechat/wechat-unminimize.sh</command></action></item>
|
||||||
|
</menu>
|
||||||
|
</openbox_menu>
|
||||||
3
root/scripts/wechat/wechat-restart.sh
Executable file
3
root/scripts/wechat/wechat-restart.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
pkill -9 -f /usr/bin/wechat 2>/dev/null
|
||||||
|
nohup /usr/bin/wechat >/dev/null 2>&1 &
|
||||||
3
root/scripts/wechat/wechat-start.sh
Executable file
3
root/scripts/wechat/wechat-start.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
/usr/bin/wechat
|
||||||
2
root/scripts/wechat/wechat-unminimize.sh
Executable file
2
root/scripts/wechat/wechat-unminimize.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
xdotool windowmap `xdotool search --name "微信(测试版)"` || xdotool windowmap `xdotool search --name "WeChat Beta"`
|
||||||
Reference in New Issue
Block a user