Chocolatey package for Metanorma (Windows)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tools Add msys2 as dependency to avoid ridk call Feb 14, 2019
.gitignore Chocolatey package files Dec 11, 2018
LICENSE.adoc Chocolatey package files Dec 11, 2018
README.adoc Add section how install package from repository Jan 23, 2019
appveyor.yml
metanorma.nuspec Updates according to Chocolatey Guidelines Feb 19, 2019

README.adoc

Build Status

chocolatey-metanorma: Chocolatey install for Metanorma

Modifying the package

  1. Edit the metanorma.nuspec configuration file.

  2. Edit the ./tools/chocolateyInstall.ps1 install script

  3. Edit the ./tools/chocolateyUninstall.ps1 uninstall script

  4. You must save your files with UTF-8 character encoding without BOM.

Building the package

  • Run choco pack in the same directory as metanorma.nuspec

Note
If you are running this from a command prompt/Powershell prompt, you must run it “as Administrator”.

Testing the package

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

In the package directory, use:

Or, use the full path:

  • choco install metanorma -source 'c:\path\to\package' -f

After executing the install, ensure that metanorma.exe is installed by executing the following command from the command prompt:

metanorma version

If it is properly installed, you will see the current version of Metanorma.

Testing uninstallation

Note
The Chocolatey install path on Windows is typically C:\ProgramData\chocolatey

Execute the following command to uninstall Metanorma.

choco uninstall metanorma -y

After executing the uninstall ensure that metanorma is not found in the Chocolatey install path.

You can also try running metanorma version from the command-line to see if it is still installed

Publish the package to the Chocolatey community feed repository

choco apikey -k [API_KEY_HERE] -source https://chocolatey.org/`

# package name can be omitted below
choco push metanorma.[version num].nupkg -s https://chocolatey.org/

Installation from official repository

choco install metanorma -y

or

cinst metanorma -y

See the Chocolatey Packages Quick Start for more information.

See the Chocolatey Packages Quick Start for more information.