This is the code I use to publish the MediaElch package to Chocolatey.
- Follow the instructions on chocolatey.org to setup Chocolatey
- Clone this repository and navigate to the folder in PowerShell
Build.ps1
to create the packagechoco install mediaelch -Source "full-directory-path"
to install it locally
And you're done!
When a new release of MediaElch is out in the wild, updating this package is easy:
-
Fork this repository to your local environment
-
Open
src\tools\chocolateyInstall.ps1
and update the URL as necessary -
Open
src\MediaElch.nuspec
and modify the following properties:- version - Set to match the version of MediaElch
- releaseNotes - Set to URL of release notes for new version
-
Commit the changes to a branch and push it to your fork
-
Submit a pull request
After I merge the pull request, I'll publish a new release to Chocolatey so they can review it.