mirror of
https://github.com/nickrunning/wechat-selkies.git
synced 2026-05-09 08:28:24 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
034751bb9d | ||
|
|
d7b1880ed6 | ||
|
|
6039c9be09 |
42
.github/workflows/docker.yml
vendored
42
.github/workflows/docker.yml
vendored
@@ -8,11 +8,13 @@ on:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
DOCKERHUB_REGISTRY: docker.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
environment: DOCKERHUB
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@@ -27,23 +29,34 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
- name: Login to Docker Hub
|
||||
if: vars.ENABLE_DOCKERHUB == 'true'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.DOCKERHUB_REGISTRY }}
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }},enable=${{ vars.ENABLE_DOCKERHUB == 'true' }}
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=raw,value=latest
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') || startsWith(github.ref, 'refs/tags/') }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-image
|
||||
@@ -67,11 +80,28 @@ jobs:
|
||||
|
||||
- name: Output Docker image information
|
||||
run: |
|
||||
echo "## 🐳 Docker Image Published" >> $GITHUB_STEP_SUMMARY
|
||||
echo "## 🐳 Docker Images Published" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### GitHub Container Registry" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Registry:** ${{ env.REGISTRY }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Repository:** ${{ env.IMAGE_NAME }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Digest:** \`${{ steps.build-image.outputs.digest }}\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Tags:**" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "${{ steps.meta.outputs.tags }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
if [ "${{ vars.ENABLE_DOCKERHUB }}" == "true" ]; then
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### Docker Hub" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Registry:** ${{ env.DOCKERHUB_REGISTRY }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Repository:** ${{ github.repository }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Digest:** \`${{ steps.build-image.outputs.digest }}\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Tags:**" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "${{ steps.meta.outputs.tags }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
else
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### Docker Hub" >> $GITHUB_STEP_SUMMARY
|
||||
echo "⚠️ **Skipped** - Docker Hub push disabled (set ENABLE_DOCKERHUB=true to enable)" >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
19
README.md
19
README.md
@@ -8,6 +8,10 @@
|
||||
|
||||
本项目将官方微信 Linux 客户端封装在 Docker 容器中,通过 Selkies 技术实现在浏览器中直接使用微信,无需在本地安装微信客户端。适用于服务器部署、远程办公等场景。
|
||||
|
||||
## 升级注意事项
|
||||
|
||||
> 如果升级后部分功能缺失,请先清空本地挂载目录下的openbox目录(如`./config/.config/openbox`)。
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 🌐 **浏览器访问**:通过 Web 浏览器直接使用微信,无需本地安装
|
||||
@@ -18,6 +22,7 @@
|
||||
- 📁 **文件传输**:支持通过侧边栏面板进行文件传输
|
||||
- 🖥️ **AMD64和ARM64架构支持**:兼容主流CPU架构
|
||||
- 🔧 **硬件加速**:可选的 GPU 硬件加速支持
|
||||
- 🪟 **窗口切换器**:左上角增加切换悬浮窗,方便切换到后台窗口,为后续添加其它功能做基础
|
||||
|
||||
## 快速开始
|
||||
|
||||
@@ -57,7 +62,17 @@ docker run -it -p 3001:3001 -v ./config:/config ghcr.io/nickrunning/wechat-selki
|
||||
|
||||
### 配置说明
|
||||
|
||||
更多自定义配置请参考 [Selkies Base Images from LinuxServer](https://github.com/linuxserver/docker-baseimage-selkies).
|
||||
更多自定义配置请参考 [Selkies Base Images from LinuxServer](https://github.com/linuxserver/docker-baseimage-selkies)。
|
||||
|
||||
#### Docker Hub 推送配置
|
||||
|
||||
本项目支持同时推送到 GitHub Container Registry 和 Docker Hub。如需启用 Docker Hub 推送功能,请在仓库下添加Environment Secrets和Environment Variables:
|
||||
|
||||
**必需的Environment Secrets:**
|
||||
* DOCKERHUB_USERNAME: 你的 Docker Hub 用户名
|
||||
* DOCKERHUB_TOKEN: 你的 Docker Hub Access Token
|
||||
**必需的Environment Variables:**
|
||||
* ENABLE_DOCKERHUB: 设置为 `true` 来启用 Docker Hub 推送
|
||||
|
||||
#### 环境变量配置
|
||||
|
||||
@@ -81,7 +96,7 @@ docker run -it -p 3001:3001 -v ./config:/config ghcr.io/nickrunning/wechat-selki
|
||||
|
||||
- `./config:/config`: 微信配置和数据持久化目录
|
||||
|
||||
> 如果升级后右键菜单缺少 `WeChat` 相关选项,请先清空本地挂载目录下的openbox目录(如`./config/.config/openbox`)。
|
||||
> **注意:** 如果升级后右键菜单缺少 `WeChat` 相关选项,请先清空本地挂载目录下的openbox目录(如`./config/.config/openbox`)。
|
||||
|
||||
## 高级配置
|
||||
|
||||
|
||||
17
README_en.md
17
README_en.md
@@ -8,6 +8,10 @@ Docker-based WeChat Linux client with browser access support using Selkies WebRT
|
||||
|
||||
This project packages the official WeChat Linux client in a Docker container, enabling direct WeChat usage in browsers through Selkies technology without local installation. Suitable for server deployment, remote work, and other scenarios.
|
||||
|
||||
## Upgrade Notes
|
||||
|
||||
> If some features are missing after an upgrade, please clear the `openbox` directory in the local mounted directory (e.g., `./config/.config/openbox`).
|
||||
|
||||
## Features
|
||||
|
||||
- 🌐 **Browser Access**: Use WeChat directly through web browsers without local installation
|
||||
@@ -18,6 +22,7 @@ This project packages the official WeChat Linux client in a Docker container, en
|
||||
- 📁 **File Transfer**: Support file transfer through sidebar panel
|
||||
- 🖥️ **AMD64 and ARM64 Architecture Support**: Compatible with mainstream CPU architectures
|
||||
- 🔧 **Hardware Acceleration**: Optional GPU hardware acceleration support
|
||||
- 🪟 **Window Switcher**: Added a floating window switcher in the top left corner for easy switching to background windows, laying the foundation for adding other features in the future
|
||||
|
||||
## Quick Start
|
||||
|
||||
@@ -59,6 +64,16 @@ docker run -it -p 3001:3001 -v ./config:/config ghcr.io/nickrunning/wechat-selki
|
||||
|
||||
For more custom configurations, please refer to [Selkies Base Images from LinuxServer](https://github.com/linuxserver/docker-baseimage-selkies).
|
||||
|
||||
#### Docker Hub Push Configuration
|
||||
This project supports pushing to both GitHub Container Registry and Docker Hub. Docker Hub push is optional and requires manual configuration. Please add the following Environment Secrets and Environment Variables in your repository to enable Docker Hub push functionality:
|
||||
|
||||
**Required Environment Secrets:**
|
||||
* `DOCKERHUB_USERNAME`: Your Docker Hub username
|
||||
* `DOCKERHUB_TOKEN`: Your Docker Hub Access Token
|
||||
|
||||
**Required Environment Variables:**
|
||||
* `ENABLE_DOCKERHUB`: Set to `true` to enable Docker Hub push
|
||||
|
||||
#### Environment Variables
|
||||
|
||||
Configure the following environment variables in `docker-compose.yml`:
|
||||
@@ -81,7 +96,7 @@ Configure the following environment variables in `docker-compose.yml`:
|
||||
|
||||
- `./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`).
|
||||
> **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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user