Member-only story
Add your favorite tool to the winget repository
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.
- download YamlCreate.ps1 from https://github.com/microsoft/winget-pkgs. It’s in the tools folder.
- Run .\YamlCreate.ps1 in Power Shell
- 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)
- Provide package Id in the Publisher.Appname form (f.i. dnGrep.dnGrep)
- 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). - The manifest is generated.
- Now you need to verify the syntax.
winget validate <manifest>
- Test the install.
winget install -m <manifest>
- Create the fork of https://github.com/microsoft/winget-pkgs and add created manifest into the necessary folder (f.i. \manifests\dnGrep\dnGrep)