Use https://scoop.sh instead, where both nats-server and natscli
are packaged
NATS Chocolatey Packaging
These are utilities to build Chocolatey packages for NATS windows executables. Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind.
Requirements
In order to build NATS chocolatey packages the following requirements must be met:
A windows machine with powershell v2 or greater. Most windows systems default to this.
At install time the specified package will download the corresponding zip file from the github nats.io release packages, then extract and place the contents where chocolatey requires them to be. This method (versus including binaries) simplifies the moderation process with Chocolatey, and ensures proper binaries are always downloaded.
NATS Server (gnatsd) Package
Instructions:
chdir to the gnatsd direcory.
Inspect/Edit the gnatsd.nuspec and tools\ChocolateyInstall.ps1 to ensure the correct version numbers and checksums are set.
build_package creates the package as a <gnatsd>.<version>.<packagefix>.nupkg file .
test_package and inspect output for errors.
Upload the package to Chocolatey and begin the moderation process.
NATS Streaming Server (nats-streaming-server) Package
Instructions:
chdir to the nats-streaming-server direcory.
Inspect/Edit the nats-streaming-server.nuspec and tools\ChocolateyInstall.ps1 to ensure the correct version numbers and checksums are set.
build_package creates the package as a <nats-streaming-server>.<version>.<packagefix>.nupkg file .
test_package and inspect output for errors.
Upload the package to Chocolatey and begin the moderation process.
Package Names and Versioning
Use a version of <package>.<release-version>.YYYYMMDD with a date, e.g gnatsd.0.9.4.20160818. It is the Chocolatey standard that allows one to fix/modify the package without a product version bump.
TODO
Automate versioning - accept version as a script parameter and generate nuspec files from a template
NATS Chocolatey Packaging
These are utilities to build Chocolatey packages for NATS windows executables. Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind.
Requirements
In order to build NATS chocolatey packages the following requirements must be met:
How it works
At install time the specified package will download the corresponding zip file from the github nats.io release packages, then extract and place the contents where chocolatey requires them to be. This method (versus including binaries) simplifies the moderation process with Chocolatey, and ensures proper binaries are always downloaded.
NATS Server (gnatsd) Package
Instructions:
chdirto thegnatsddirecory.gnatsd.nuspecandtools\ChocolateyInstall.ps1to ensure the correct version numbers and checksums are set.build_packagecreates the package as a<gnatsd>.<version>.<packagefix>.nupkgfile .test_packageand inspect output for errors.NATS Streaming Server (nats-streaming-server) Package
Instructions:
chdirto thenats-streaming-serverdirecory.nats-streaming-server.nuspecandtools\ChocolateyInstall.ps1to ensure the correct version numbers and checksums are set.build_packagecreates the package as a<nats-streaming-server>.<version>.<packagefix>.nupkgfile .test_packageand inspect output for errors.Package Names and Versioning
Use a version of
<package>.<release-version>.YYYYMMDDwith a date, e.ggnatsd.0.9.4.20160818. It is the Chocolatey standard that allows one to fix/modify the package without a product version bump.TODO
Contact colin.sullivan@nats.io for questions, issues, etc.