From d67168bef52a531f3146f52a39a7c7b0e0469fc4 Mon Sep 17 00:00:00 2001 From: Wang Defa Date: Fri, 19 Dec 2025 09:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=96=87=E6=A1=A3=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=85=B7?= =?UTF-8?q?=E4=BD=93=E7=9A=84=20Gitea=20=E4=BB=93=E5=BA=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 替换 README 中的 Debian 包安装说明为具体的 gitea.bcde.io 仓库地址 - 精简 README 内容,移除不必要的章节 - 完善 Debian 包安装指南 --- README.md | 89 +++++++++++++++++-------------------------------------- 1 file changed, 27 insertions(+), 62 deletions(-) diff --git a/README.md b/README.md index 98968b3..937e6bd 100644 --- a/README.md +++ b/README.md @@ -20,24 +20,41 @@ ### 使用 Debian 包安装(推荐) +Debian 12 (bookworm): + ```bash -# 1. 添加包仓库 -sudo curl https://GITEA_URL/api/packages/OWNER/debian/repository.key \ - -o /etc/apt/keyrings/gitea-OWNER.asc +# 下载 GPG 密钥 +sudo curl https://gitea.bcde.io/api/packages/wangdefa/debian/repository.key -o /etc/apt/keyrings/gitea-wangdefa.asc -echo "deb [signed-by=/etc/apt/keyrings/gitea-OWNER.asc] \ - https://GITEA_URL/api/packages/OWNER/debian bookworm main" | \ - sudo tee /etc/apt/sources.list.d/OWNER.list +# 添加包仓库 +echo "deb [signed-by=/etc/apt/keyrings/gitea-wangdefa.asc] https://gitea.bcde.io/api/packages/wangdefa/debian bookworm main" | sudo tee -a /etc/apt/sources.list.d/wangdefa.list -# 2. 安装 P2Pool +# 安装 P2Pool sudo apt-get update sudo apt-get install p2pool +``` -# 3. 配置 -sudo nano /var/lib/p2pool/params.conf +Debian 13 (trixie): + +```bash +# 下载 GPG 密钥 +sudo curl https://gitea.bcde.io/api/packages/wangdefa/debian/repository.key -o /etc/apt/keyrings/gitea-wangdefa.asc + +# 添加包仓库 +echo "deb [signed-by=/etc/apt/keyrings/gitea-wangdefa.asc] https://gitea.bcde.io/api/packages/wangdefa/debian trixie main" | sudo tee -a /etc/apt/sources.list.d/wangdefa.list + +# 安装 P2Pool +sudo apt-get update +sudo apt-get install p2pool +``` + +修改配置: + +```bash # 设置你的 Monero 钱包地址 +sudo nano /var/lib/p2pool/params.conf -# 4. 启动服务 +# 启动服务 sudo systemctl enable --now p2pool.service ``` @@ -106,43 +123,6 @@ docker buildx build --pull \ 4. **自动发布** → 上传到包注册中心 5. **创建 Release** → 附带下载链接和说明 -## 🛠️ 技术栈 - -- **构建工具**: Docker, Docker Buildx -- **编译工具**: CMake, GCC, G++ -- **依赖库**: libuv, libzmq, libcurl -- **CI/CD**: Gitea Actions -- **包管理**: dpkg, apt - -## 📖 开发指南 - -### 更新 p2pool 版本 - -```bash -# 1. 编辑 CI 配置 -vim .gitea/workflows/ci.yaml -# 更新 PACKAGE_VERSION 变量 - -# 2. 本地测试构建 -docker buildx build \ - --build-arg P2POOL_VERSION=vX.Y.Z \ - --output type=local,dest=./output \ - -f docker/Dockerfile.alpine . - -# 3. 创建版本标签 -git tag vX.Y.Z -git push origin vX.Y.Z -``` - -### 编码规范 - -项目遵循以下规范: - -- **Shell 脚本**: 使用 `set -e`,严格参数验证 -- **Dockerfile**: 多阶段构建,优化缓存利用 -- **CI/CD**: 使用构建矩阵,原生架构运行器 - -详见:[编码规范](llmdoc/reference/coding-conventions.md) | [Git 规范](llmdoc/reference/git-conventions.md) ## 🔐 安全性 @@ -152,15 +132,6 @@ git push origin vX.Y.Z - ✅ 最小权限原则 - ✅ 安全的文件权限设置 -## 🤝 贡献 - -欢迎提交 Issue 和 Pull Request! - -在提交 PR 前,请确保: -1. 代码符合项目编码规范 -2. 更新相关文档 -3. 测试所有受影响的构建配置 - ## 📄 许可证 本项目为上游 [p2pool](https://github.com/SChernykh/p2pool) 提供构建基础设施。 @@ -173,12 +144,6 @@ git push origin vX.Y.Z - **Monero**: [getmonero.org](https://www.getmonero.org/) - **项目文档**: [llmdoc/index.md](llmdoc/index.md) -## 💬 支持 - -- 📖 查看 [文档](llmdoc/index.md) -- 🐛 提交 [Issue](../../issues) -- 💡 参考 [配置指南](README-params.md) - --- **注意**: 本仓库不包含 p2pool 源代码,仅提供构建和打包基础设施。