package-release
Package Release
Build distribution packages (deb, rpm) for voxtype releases.
Prerequisites
fpm- Install withgem install fpmrpmbuild- Install withsudo dnf install rpm-buildorsudo pacman -S rpm-tools- Pre-built binaries in
releases/${VERSION}/
Quick Package
If binaries already exist:
./scripts/package.sh --skip-build ${VERSION}
Full Build + Package
Build binaries and create packages:
./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.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
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
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:
gem install fpm
Validation failed: Check the specific error. Usually means Docker cache is stale.
More from peteonrails/voxtype
docker-test
Test voxtype in Docker containers. Use for testing builds, verifying packages work on different distros, or isolating test environments.
21regression-test
Run regression tests for voxtype releases. Use before major releases to verify core functionality, CLI commands, and configuration handling.
20update-docs
Update voxtype documentation for releases and features. Use when adding features, fixing bugs, or preparing releases. Covers user manual, troubleshooting, website, release notes, and contributor credits.
20build-release
Build all voxtype binaries for release. Builds Whisper (AVX2, AVX-512, Vulkan) and ONNX (AVX2, AVX-512, CUDA) binaries using Docker. Use when preparing a new release.
18aur-publish
Publish voxtype to AUR. Updates PKGBUILD, generates checksums, and pushes to AUR. Use after a GitHub release is published.
18triage
Triage a GitHub issue or PR by checking for duplicates, documentation alignment, project fit, and recommending labels.
17