Files
p2pool/llmdoc/architecture/debian-packaging.md
Wang Defa b4a284efd1
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in -12s
Build and Release / build-and-test (amd64, alpine) (push) Successful in -5s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 0s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 9s
Build and Release / release (push) Successful in 38s
简化 CI 配置:统一使用 stable Debian 发行版
- 移除多发行版 Debian Package Registry 上传(bookworm、trixie)
- 统一上传到 stable 发行版池,简化维护和用户体验
- 更新 README 和文档系统的安装指南
- 新增 CI 工作流程概述文档
- 保持 ubuntu 和 alpine 双发行版构建支持
2025-12-25 11:05:47 +08:00

45 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Debian 打包架构
## 1. 身份
- **目的**:为 p2pool 构建跨架构的 Debian 软件包
- **关键功能**:多架构支持、自动化构建和发布
## 2. 核心组件
关键文件:
- `.gitea/workflows/ci.yaml`CI/CD 流程
- `debian/build-deb.sh`Debian 打包脚本
- `debian/control`:软件包元数据
- `debian/postinst`:安装后脚本
- `debian/postrm`:卸载后脚本
## 3. 构建流程
1. **架构选择**
- `amd64`: 64位 x86 架构
- `arm64`: ARM 64位架构
2. **发行版目标**
- `stable`:统一的稳定发行版仓库
3. **Package Registry**
- Generic Package Registry存储 `.tar.gz`
- Debian Package Registry存储 `.deb`
## 4. 配置管理
- 配置文件:`/var/lib/p2pool/params.conf`
- 安全原则:
- 配置与二进制包分离
- 升级时保留用户配置
- 最小权限原则
## 5. 发布策略
- 自动化版本发布
- 标签触发(`refs/tags/*`
- 多渠道发布:
1. Generic Package Registry
2. Debian Package Registry
3. GitHub/Gitea Releases