Skip to content

feat(cli): add Linux (.deb/.rpm) and Windows (Chocolatey) package builds - #304

Open
scouten-adobe wants to merge 4 commits into
mainfrom
gpeacock/release_packages
Open

feat(cli): add Linux (.deb/.rpm) and Windows (Chocolatey) package builds#304
scouten-adobe wants to merge 4 commits into
mainfrom
gpeacock/release_packages

Conversation

@scouten-adobe

@scouten-adobe scouten-adobe commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Add cargo-deb and cargo-generate-rpm metadata to Cargo.toml and CI steps to build and upload .deb, .rpm, and .nupkg artifacts to GitHub releases. Add chocolatey/ package template. Update README installation section with Homebrew (macOS/Linux), Chocolatey, .deb, and .rpm instructions.


Migrated from contentauth/c2pa-rs#2040 as part of the c2patool repo split. That PR also edits .github/workflows/release.yml, which is c2pa-rs's shared multi-crate release orchestration and stays there -- everything else (Cargo.toml, README.md, chocolatey/) carried over here in full.

Add cargo-deb and cargo-generate-rpm metadata to cli/Cargo.toml and
CI steps to build and upload .deb, .rpm, and .nupkg artifacts to
GitHub releases. Add chocolatey/ package template. Update README
installation section with Homebrew (macOS/Linux), Chocolatey,
.deb, and .rpm instructions.
Adapts contentauth/c2pa-rs#2040's release-workflow changes for the
standalone repo:
- Adds Chocolatey/.deb/.rpm build+package steps to the existing per-OS
  release job, landing artifacts in dist/ alongside the zip/tar.gz+SBOM
  so the existing upload/release pipeline picks them up unchanged.
- Fixes chocolatey/c2patool.nuspec and chocolatey/tools/chocolateyInstall.ps1,
  which still hardcoded contentauth/c2pa-rs URLs and the old
  c2patool-${version} tag naming -- now point at this repo and the real
  v${tag} asset names our own build produces.
- Fixes README's package-install instructions to link this repo's own
  releases page instead of c2pa-rs's release-notes tag filter.
- Fixes two latent breaks from the repo flattening that this workflow
  would have hit on its first real run: the Makefile's ../target/
  paths (assumed a cli/ subdirectory that no longer exists) and this
  workflow's own cd cli && ... steps.
@scouten-adobe

Copy link
Copy Markdown
Collaborator Author

Adapted contentauth/c2pa-rs#2040's release-workflow changes for this repo (commit 261e7cf):

  • Added Chocolatey/.deb/.rpm build+package steps to the existing per-OS c2patool-release.yml job (fitting into this repo's build-once/upload-artifact/release pattern rather than copying c2pa-rs's inline-upload pattern verbatim).
  • Fixed chocolatey/c2patool.nuspec and chocolatey/tools/chocolateyInstall.ps1, which still hardcoded contentauth/c2pa-rs URLs and the old c2patool-${version} tag naming from before the split -- these would have produced a broken Chocolatey package on the first real release.
  • Fixed README's package-install instructions to link this repo's own releases page.
  • Also fixed two latent breaks the flattening left behind that this workflow would have hit on its first real run: the Makefile's ../target/ paths (assumed a cli/ subdirectory that no longer exists) and the workflow's own cd cli && ... steps.

This should be ready to merge; contentauth/c2pa-rs#2040 can likely be closed once it is.

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