Skip to content

Add Homebrew and Debian/Ubuntu packaging with verification tests#1

Merged
8r4n merged 5 commits intomainfrom
copilot/package-for-mac-and-ubuntu
Feb 28, 2026
Merged

Add Homebrew and Debian/Ubuntu packaging with verification tests#1
8r4n merged 5 commits intomainfrom
copilot/package-for-mac-and-ubuntu

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 28, 2026

Adds packaging support for macOS Homebrew and Debian/Ubuntu apt, complementing the existing RPM and Nix packaging.

Homebrew — Formula/tarzst.rb

  • Installs tarzst binary + zstar symlink via bin.install_symlink
  • Declares runtime deps: bash, zstd, gnupg, coreutils; recommends pv
  • Downloads from GitHub release tag v3.1
brew tap 8r4n/zstar https://github.com/8r4n/zstar
brew install tarzst

Debian — tarzst-project/debian/

  • control: Architecture: all, depends on bash (>= 4.0), tar, zstd, coreutils, gnupg2
  • rules: debhelper-based, override_dh_auto_install handles rename from tarzst.shtarzst and zstar symlink
  • source/format: 3.0 (native)
  • Standard changelog, copyright (DEP-5/MIT)
cd tarzst-project
dpkg-buildpackage -us -uc -b
sudo dpkg -i ../tarzst_3.1_all.deb

README

  • Added TOC entries and documentation sections for both packaging methods

Packaging Verification Tests — test/test_packaging.bats

Added 56 BATS tests to verify packaging correctness:

  • Homebrew formula validation (16 tests): Ruby syntax, metadata (version, license, homepage), dependency declarations, install paths, test block
  • Debian packaging validation (23 tests): File structure, control fields (package name, architecture, dependencies), rules install logic, changelog format, copyright (DEP-5/MIT), source format
  • Simulated install tests (2 tests): Executes the install commands from debian/rules into a temp directory, verifies binary exists, is executable, symlink points correctly, and --help produces expected output
  • Cross-format consistency tests (7 tests): Verifies version, dependencies, and license match across Homebrew, Debian, and RPM spec

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: 8r4n <125826979+8r4n@users.noreply.github.com>
Copilot AI changed the title [WIP] Add project packaging for Mac Brew and Ubuntu APT Add Homebrew and Debian/Ubuntu packaging Feb 28, 2026
@8r4n
Copy link
Copy Markdown
Owner

8r4n commented Feb 28, 2026

@copilot implement testing to verify the successful packaging

@8r4n
Copy link
Copy Markdown
Owner

8r4n commented Feb 28, 2026

@copilot add guidance on how to submit bugs and pull requests via github issues. add a contributor guide

Copilot AI and others added 3 commits February 28, 2026 23:22
Co-authored-by: 8r4n <125826979+8r4n@users.noreply.github.com>
…cross-format consistency)

Co-authored-by: 8r4n <125826979+8r4n@users.noreply.github.com>
Co-authored-by: 8r4n <125826979+8r4n@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 28, 2026

@copilot implement testing to verify the successful packaging

Added test/test_packaging.bats with 56 tests covering:

  • Homebrew formula (16 tests): Ruby syntax validation, metadata (version, license, homepage), all dependency declarations, install paths, test block
  • Debian packaging (23 tests): File structure (control, rules, changelog, copyright, source/format), control fields (package name, architecture, dependencies), rules install logic
  • Simulated install (2 tests): Runs the actual install commands from debian/rules into a temp dir, verifies binary + symlink + help output
  • Cross-format consistency (7 tests): Verifies version, dependencies, and license match across Homebrew, Debian, and RPM spec

All 56 tests pass. See commit aeef40c.

Copilot AI changed the title Add Homebrew and Debian/Ubuntu packaging Add Homebrew and Debian/Ubuntu packaging with verification tests Feb 28, 2026
@8r4n 8r4n marked this pull request as ready for review February 28, 2026 23:25
@8r4n 8r4n merged commit a0479ad into main Feb 28, 2026
1 check failed
Copilot stopped work on behalf of 8r4n due to an error February 28, 2026 23:25
@8r4n 8r4n deleted the copilot/package-for-mac-and-ubuntu branch March 1, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants