Skip to content

feat(packaging): Add Chocolatey package scaffolding #36

@rianjs

Description

@rianjs

Summary

Create the Chocolatey package structure with nuspec and install scripts following best practices from the platform distribution guide.

Changes

  • Create packaging/chocolatey/newrelic-cli.nuspec with proper metadata
  • Create packaging/chocolatey/tools/chocolateyInstall.ps1 with checksum placeholders
  • Create packaging/chocolatey/tools/chocolateyUninstall.ps1
  • Create packaging/chocolatey/README.md with documentation

Key requirements

  • projectUrl must differ from projectSourceUrl (add #readme fragment) - CPMR0041
  • Use only Chocolatey built-in download functions (no Invoke-WebRequest) - CPMR0055
  • Use CHECKSUM_AMD64_PLACEHOLDER and CHECKSUM_ARM64_PLACEHOLDER for build-time injection - CPMR0073
  • Include ARM64 architecture detection
  • Throw explicit error for 32-bit Windows

Files to create

  • packaging/chocolatey/newrelic-cli.nuspec
  • packaging/chocolatey/tools/chocolateyInstall.ps1
  • packaging/chocolatey/tools/chocolateyUninstall.ps1
  • packaging/chocolatey/README.md

Acceptance criteria

  • choco pack succeeds locally (with placeholder values)
  • Package structure follows Chocolatey moderation rules (CPMR0041, CPMR0055, CPMR0073)

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions