switchspan / chocolatey-hugo

Chocolatey install for Hugo
1 stars 3 forks source link

chocolatey-hugo

Chocolatey install for Hugo

Modifying the package

Note: 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.

Generating Checksum

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

Build the package

Note: If you are running this from a command prompt/powershell prompt, you want to run it as Administrator.

Test the package

Note: testing should probably be done on a Virtual Machine (See: https://github.com/chocolatey/chocolatey-test-environment)

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.

Test uninstallation

Note: the Chocolatey install path on windows is typically C:\ProgramData\chocolatey

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

Publish the package to the Chocolatey community feed repository:

See the Chocolatey Packages Quick Start for more information.