首页/ AI 技能 / @skilllib/skill-2014279374755803137
Skill站外收录 @skilllib/skill-2014279374755803137

package-release

将 voxtype 二进制文件自动打包为 Debian 和 RPM 发行版安装包,支持跳过构建、指定架构、单独生成某类包等灵活配置,并内置二进制完整性校验与包结构验证,确保发布包符合各发行版规范。

0.0 (0) 226 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# Package Release Build distribution packages (deb, rpm) for voxtype releases. ## Prerequisites - `fpm` - Install with `gem install fpm` - `rpmbuild` - Install with `sudo dnf install rpm-build` or `sudo pacman -S rpm-tools` - Pre-built binaries in `releases/${VERSION}/` ## Quick Package If binaries already exist: ```bash ./scripts/package.sh --skip-build ${VERSION} ``` ## Full Build + Package Build binaries and create packages: ```bash ./scripts/package.sh ${VERSION} ``` ## Options | Flag | Description | |------|-------------| | `--skip-build` | Use existing binaries, don't rebuild | | `--deb-only` | Build only Debian package | | `--rpm-only` | Build only RPM package | | `--no-validate` | Skip package validation | | `--release N` | Set package release number (default: 1) | | `--arch ARCH` | Target architecture: x86_64 or aarch64 | ## Output Packages are created in `releases/${VERSION}/`: - `voxtype_${VERSION}-1_amd64.deb` - `voxtype-${VERSION}-1.x86_64.rpm` ## Validation The script automatically: 1. Validates binaries for CPU instruction contamination 2. Checks deb package structure for duplicate fields 3. Verifies required control file fields ## Workflow 1. Build binaries (Docker for AVX2/Vulkan, local for AVX-512) 2. Verify binary versions match expected version 3. Run `./scripts/package.sh --skip-build ${VERSION}` 4. Test package installation in a VM or container ## Common Issues **Binary not found:** ``` Error: Binary not found: releases/0.4.14/voxtype-0.4.14-linux-x86_64-avx2 ``` Build binaries first or check the version number. **fpm not found:** ```bash gem install fpm ``` **Validation failed:** Check the specific error. Usually means Docker cache is stale.

评论 0

还没有评论,来抢沙发。