Chocolatey install for Hugo
hugo.nuspec
configuration file../tools/chocolateyInstall.ps1
install script./tools/chocolateyUninstall.ps1
uninstall scriptNote: Make sure you install checksum (choco install checksum
) and calculate checksums for the 32bit and 64bit copies of hugo in the Install-ChocolateyZipPackage command of the chocolateyInstall.ps1
file.
Use the checksum
tool to calculate the sha256 checksum for each of the zip files from the hugo releases:
C:\DirectoryWhereHugoZipIsAt>checksum -f=".\hugo_0.25.1_Windows-32bit.zip" -t=sha256
choco pack
in the same directory as hugo.nuspec
Note: If you are running this from a command prompt/powershell prompt, you want to run it as Administrator.
Note: testing should probably be done on a Virtual Machine (See: https://github.com/chocolatey/chocolatey-test-environment)
choco install hugo -s "$pwd" -f
(powershell)choco install hugo -s '%cd%' -f
(everywhere else)choco install hugo -source 'c:\path\to\package' -f
After executing the install, ensure that hugo.exe
is installed by executing the following command from the command prompt: hugo version
. If it is properly installed, you will see the current version of hugo.
Note: the Chocolatey install path on windows is typically C:\ProgramData\chocolatey
choco uninstall hugo -y
After executing the uninstall ensure that hugo.exe
is not found in the Chocoloatey install path. You can also try running hugo version
from the commandline to see if it is still installed
choco apikey -k [API_KEY_HERE] -source https://chocolatey.org/
choco push hugo.[version num].nupkg -s https://chocolatey.org/
(package name can be omitted)See the Chocolatey Packages Quick Start for more information.