Skip to content

Commit

Permalink
feat: 🎸 调整代码
Browse files Browse the repository at this point in the history
  • Loading branch information
danni-cool committed Jul 17, 2024
1 parent 48b801e commit 1190e4a
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 29 deletions.
10 changes: 0 additions & 10 deletions .dockerignore

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
context: .
file: ./docker/Dockerfile
push: true
tags: dannicool/wechatbotkit-py-http:latest
tags: dannicool/wechatbot-provider-windows:latest
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# wechat-provider-wcferry
这是一个可以使用 docker 部署的pc版微信,对外暴露了rpc调用的钩子。当然你也可以fork项目代码,完全用http实现,该项目提供了一个比较简单的示例。
# wechatbot-provider-windows
这是一个可以使用 docker 部署的 pc 版微信,对外暴露了 rpc 调用的钩子。
当然你也可以 fork 项目继续完善代码用 http 实现,该项目集成了一个小型的 fastapi 服务端。

# 感谢

thanks to [](wechat-provider-wcferry)

# 免责声明

Expand All @@ -22,10 +20,24 @@ thanks to [](wechat-provider-wcferry)
作者保留对本作品的所有权利。使用者在使用本作品时,视为同意本免责声明的所有条款。如有任何违反上述条款的行为,使用者应当立即停止使用本作品,并自行承担相应的法律责任。


# 硬件要求:

- 磁盘:构建的镜像大小约5G。安装微信后达到7G,长期使用将持续扩大;
- 内存:正常运行是2-3g,初始化安装程序会占用到7g,所以给一个8g的内存比较稳妥
- CPU:至少 1Ghz吧

# Install

## 1. 拉取镜像

## 2. 启动镜像

## 3. 安装应用


# Credit
# 鸣谢

本项目只是对以下两个项目的整合,所以最终的贡献还是离不开以下两位大神的努力,大家有空给他们加🌟
本项目只是对以下两个项目的整合,所以最终的贡献还是属于以下两位大佬的项目。

- [wechat_box](https://github.com/Saroth/docker_wechat)
- [WeChatFerry](https://github.com/lich0821/WeChatFerry)
Empty file added docker/docker-compose.yml
Empty file.
2 changes: 1 addition & 1 deletion docker/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

docker build \
--platform linux/amd64 \
-t dannicool/wechatbotkit-py-http .
-t dannicool/wechatbot-provider-windows .

4 changes: 2 additions & 2 deletions docker/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ docker run -itd \
--platform linux/amd64 \
-p 13389:3389 \
--ulimit nofile=8192 \
--name wechatbotkit-py-http \
dannicool/wechatbotkit-py-http
--name wechatbot-provider-windows \
dannicool/wechatbot-provider-windows

5 changes: 0 additions & 5 deletions docker/res/launch.sh

This file was deleted.

6 changes: 3 additions & 3 deletions docker/res/start.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

# Step 1: Clone the repository if it does not exist
if [ ! -d "wechatbotKit-py-http" ]; then
if [ ! -d "wechatbot-provider-windows" ]; then
echo "Cloning the repository..."
git clone https://github.com/danni-cool/wechatbotKit-py-http.git
git clone https://github.com/danni-cool/wechatbot-provider-windows.git
else
echo "Repository already exists, skipping clone..."
fi

cd wechatbotKit-py-http
cd wechatbot-provider-windows

# Default to pull the latest code
echo "Pulling latest code from repository..."
Expand Down

0 comments on commit 1190e4a

Please sign in to comment.