Files
xxxigcc-proxy/llmdoc/guides/how-to-build-debian-package.md
Wang Defa 9afe4a8649
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in -13s
Build and Release / build-and-test (amd64, alpine) (push) Successful in -6s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in -7s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 7s
Build and Release / release (push) Successful in 21s
简化 Debian 发布流程并添加项目文档系统
- 将 Debian 包仓库从 bookworm/trixie 双发行版改为通用 stable 仓库
- 新增完整的 llmdoc 文档系统,包含架构、指南和参考文档
- 更新 README.md 和部署指南以反映新的仓库配置
- 添加 .gitignore 文件
2025-12-25 10:18:07 +08:00

42 lines
932 B
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. **环境准备**
- 已安装 `build-essential`
- 已安装 `dpkg-dev`
- 准备源代码 tar.gz 文件
2. **构建参数**
- 架构:`amd64``arm64`
- 版本号:例如 `3.4.8-xg1`
- 源代码压缩包:`xxxigcc-proxy-amd64-ubuntu-3.4.8-xg1.tar.gz`
## 构建步骤
1. **进入项目根目录**
```bash
cd /path/to/xxxigcc-proxy
```
2. **执行构建脚本**
```bash
bash debian/build-deb.sh amd64 3.4.8-xg1 xxxigcc-proxy-amd64-ubuntu-3.4.8-xg1.tar.gz
```
3. **验证构建结果**
- 检查生成的 `.deb` 文件
- 使用 `dpkg -I` 查看包信息
## 常见问题排查
- 确保源代码 tar.gz 文件存在且解压正确
- 检查架构是否匹配
- 验证依赖项是否满足
- 查看构建日志定位错误
## 安全提示
- 仅使用可信的源代码
- 在隔离环境中构建(如 Docker
- 验证源代码完整性