package-release
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePackage Release
发布包构建
Build distribution packages (deb, rpm) for voxtype releases.
为voxtype版本构建发行版包(deb、rpm)。
Prerequisites
前提条件
- - Install with
fpmgem install fpm - - Install with
rpmbuildorsudo dnf install rpm-buildsudo pacman -S rpm-tools - Pre-built binaries in
releases/${VERSION}/
- - 使用
fpm安装gem install fpm - - 使用
rpmbuild或sudo dnf install rpm-build安装sudo pacman -S rpm-tools - 预构建的二进制文件位于目录下
releases/${VERSION}/
Quick Package
快速打包
If binaries already exist:
bash
./scripts/package.sh --skip-build ${VERSION}如果二进制文件已存在:
bash
./scripts/package.sh --skip-build ${VERSION}Full Build + Package
完整构建+打包
Build binaries and create packages:
bash
./scripts/package.sh ${VERSION}构建二进制文件并创建包:
bash
./scripts/package.sh ${VERSION}Options
选项
| Flag | Description |
|---|---|
| Use existing binaries, don't rebuild |
| Build only Debian package |
| Build only RPM package |
| Skip package validation |
| Set package release number (default: 1) |
| Target architecture: x86_64 or aarch64 |
| 标识 | 描述 |
|---|---|
| 使用已有的二进制文件,不重新构建 |
| 仅构建Debian包 |
| 仅构建RPM包 |
| 跳过包验证 |
| 设置包的发布编号(默认:1) |
| 目标架构:x86_64或aarch64 |
Output
输出
Packages are created in :
releases/${VERSION}/voxtype_${VERSION}-1_amd64.debvoxtype-${VERSION}-1.x86_64.rpm
包将创建在目录下:
releases/${VERSION}/voxtype_${VERSION}-1_amd64.debvoxtype-${VERSION}-1.x86_64.rpm
Validation
验证
The script automatically:
- Validates binaries for CPU instruction contamination
- Checks deb package structure for duplicate fields
- Verifies required control file fields
脚本会自动执行以下操作:
- 验证二进制文件是否存在CPU指令污染
- 检查deb包结构是否存在重复字段
- 验证所需的控制文件字段是否齐全
Workflow
工作流程
- Build binaries (Docker for AVX2/Vulkan, local for AVX-512)
- Verify binary versions match expected version
- Run
./scripts/package.sh --skip-build ${VERSION} - Test package installation in a VM or container
- 构建二进制文件(使用Docker构建AVX2/Vulkan版本,本地构建AVX-512版本)
- 验证二进制文件版本是否与预期版本匹配
- 运行
./scripts/package.sh --skip-build ${VERSION} - 在虚拟机或容器中测试包的安装
Common Issues
常见问题
Binary not found:
Error: Binary not found: releases/0.4.14/voxtype-0.4.14-linux-x86_64-avx2Build binaries first or check the version number.
fpm not found:
bash
gem install fpmValidation failed:
Check the specific error. Usually means Docker cache is stale.
未找到二进制文件:
Error: Binary not found: releases/0.4.14/voxtype-0.4.14-linux-x86_64-avx2请先构建二进制文件,或检查版本号是否正确。
未找到fpm:
bash
gem install fpm验证失败:
查看具体错误信息。通常意味着Docker缓存已过期。