Caution
Use https://scoop.sh instead, where both nats-server
and natscli
are packaged
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.
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.
- Chocolatey must be installed and on the path.
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.
Instructions:
chdir
to thegnatsd
direcory.- Inspect/Edit the
gnatsd.nuspec
andtools\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.
Instructions:
chdir
to thenats-streaming-server
direcory.- Inspect/Edit the
nats-streaming-server.nuspec
andtools\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.
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.
- Automate versioning - accept version as a script parameter and generate nuspec files from a template
- NATS Streaming Server chocolatey package
Contact [email protected] for questions, issues, etc.