更新 README.md 安装文档,添加具体的 Gitea 仓库信息
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in 30s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 40s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 41s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 53s
Build and Release / release (push) Successful in 1m40s

- 替换 README 中的 Debian 包安装说明为具体的 gitea.bcde.io 仓库地址
- 精简 README 内容,移除不必要的章节
- 完善 Debian 包安装指南
This commit is contained in:
2025-12-19 09:28:53 +08:00
parent 9ff0daa938
commit d67168bef5

View File

@@ -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 源代码,仅提供构建和打包基础设施。