Skip to content

Instantly share code, notes, and snippets.

@dpprdan
Last active September 1, 2022 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpprdan/621650dc7298095c0c974d4fe7b10d10 to your computer and use it in GitHub Desktop.
Save dpprdan/621650dc7298095c0c974d4fe7b10d10 to your computer and use it in GitHub Desktop.
winget

Winget Update

Update manifest with wingetcreate

Install wingetcreate in case you haven't

winget install wingetcreate

From the root of the local winget-pkgs repository

wingetcreate update <PackageIdentifier> --version <version> --urls <InstallerUrl>

After testing (see below) submit to the Repository

wingetcreate submit .\manifests\Path\to\manifest\

If the existing manifest contains more than one node per installer-URL

wingetcreate update <PackageIdentifier> --version <version> --interactive

Update manifest with YamlCreate.ps1

Alternatively update the manifest with YamlCreate.ps1

.\Tools\YamlCreate.ps1

Verify and test manifest in Windows Sandbox

From the root of the local winget-pkgs repository

.\Tools\SandboxTest.ps1 .\manifests\Path\to\manifest\

Use the -Prerelease argument to test with the pre-release version of winget

.\Tools\SandboxTest.ps1 .\manifests\Path\to\manifest\ -Prerelease

Test and install locally

From the root of the local winget-pkgs repository

winget validate .\manifests\Path\to\manifest\
winget install -m .\manifests\Path\to\manifest\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment