Member-only story

Add your favorite tool to the winget repository

Guriy Samarin
2 min readAug 17, 2020

--

You need to do it. Really.

First of all — it’s real easy. And once you do it — you will personally benefit from it every single day. Long story short — just follow this guide.

But I will show an example of how to because my favorite grep tool missing.

  1. download YamlCreate.ps1 from https://github.com/microsoft/winget-pkgs. It’s in the tools folder.
  2. Run .\YamlCreate.ps1 in Power Shell
  3. Provide URL to the installer (https://github.com/dnGrep/dnGrep/releases/download/v2.9.256.0/dnGREP.2.9.256.x64.msi in my case)
  4. Provide package Id in the Publisher.Appname form (f.i. dnGrep.dnGrep)
  5. Enter the publisher, the application name, the version, the License the InstallerType (exe, msi, msix, inno, nullsoft), the architecture and bunch of optional staff
    (for dnGrep — dnGrep, dnGrep, v2.9.256.0, GPL-2.0, msi, x64).
  6. The manifest is generated.
  7. Now you need to verify the syntax.winget validate <manifest>
  8. Test the install.winget install -m <manifest>
  9. Create the fork of https://github.com/microsoft/winget-pkgs and add created manifest into the necessary folder (f.i. \manifests\dnGrep\dnGrep)

--

--

Guriy Samarin
Guriy Samarin

Written by Guriy Samarin

Software developer at Amazon. Web (mostly backend) development now. My stack — .NET (APS.NET Core MVC).

No responses yet