Skip to content

feat(packaging): Add Chocolatey package scaffolding#41

Merged
rianjs merged 1 commit intomainfrom
feat/chocolatey-packaging
Jan 17, 2026
Merged

feat(packaging): Add Chocolatey package scaffolding#41
rianjs merged 1 commit intomainfrom
feat/chocolatey-packaging

Conversation

@rianjs
Copy link
Copy Markdown
Collaborator

@rianjs rianjs commented Jan 17, 2026

Summary

Add Chocolatey package structure for Windows distribution following best practices from the platform distribution guide.

Changes

Creates packaging/chocolatey/ with:

File Purpose
newrelic-cli.nuspec Package metadata
tools/chocolateyInstall.ps1 Installation script
tools/chocolateyUninstall.ps1 Uninstallation script
README.md Maintainer documentation

Chocolatey Moderation Compliance

Rule Requirement Implementation
CPMR0041 projectUrl must differ from projectSourceUrl Added #readme fragment to projectUrl
CPMR0055 No custom downloaders Uses Install-ChocolateyZipPackage only
CPMR0073 Checksums required CHECKSUM_AMD64_PLACEHOLDER and CHECKSUM_ARM64_PLACEHOLDER for build-time injection

Architecture Support

The install script detects:

  • ARM64: Downloads windows_arm64.zip
  • x64: Downloads windows_amd64.zip
  • 32-bit: Throws explicit error

Notes

Closes #36

Add Chocolatey package structure for Windows distribution with:

- newrelic-cli.nuspec: Package metadata with proper URLs to pass
  moderation rules (CPMR0041: projectUrl differs from projectSourceUrl)
- chocolateyInstall.ps1: Install script using Install-ChocolateyZipPackage
  (CPMR0055) with checksum placeholders for build-time injection (CPMR0073)
- chocolateyUninstall.ps1: Cleanup script for uninstallation
- README.md: Documentation for maintainers

The install script supports:
- ARM64 and x64 Windows architectures
- Explicit error for unsupported 32-bit Windows
- Automatic shimming exclusion for LICENSE and README.md
@rianjs rianjs merged commit 718fcee into main Jan 17, 2026
2 checks passed
@rianjs rianjs deleted the feat/chocolatey-packaging branch January 17, 2026 21:04
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.

feat(packaging): Add Chocolatey package scaffolding

1 participant