question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinGet manifest for Windows

See original GitHub issue

WinGet is an official command line package manager for Windows 11 (I think it’s also available for some Win10 editions). I wonder if there is interest in registering an WinGet build manifest. Since there is already an installer for Windows, this is quite simple, but I wonder how it is best to integrate with the release cycle. On PowerShell, I used the “wingetcreate” executable as per the winget manifest docs to come up with the following:

Thonny.Thonny.locale.en-US.yaml:

# Created using wingetcreate 1.0.4.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.1.0.schema.json

PackageIdentifier: Thonny.Thonny
PackageVersion: 3.3.14
PackageLocale: en-US
Publisher: Thonny
PublisherUrl: https://github.com/thonny
Author: Aivar Annamaa
PackageName: Thonny
PackageUrl: https://thonny.org/
License: MIT License
LicenseUrl: https://github.com/thonny/thonny/blob/master/LICENSE.txt
Copyright: Copyright (c) 2022 Aivar Annamaa
ShortDescription: Python IDE for beginners
Tags:
- Python
- IDE
ReleaseNotes: https://github.com/thonny/thonny/releases/tag/v3.3.14
ReleaseNotesUrl: https://github.com/thonny/thonny/releases/tag/v3.3.14
ManifestType: defaultLocale
ManifestVersion: 1.1.0

Thonny.Thonny.installer.yaml

# Created using wingetcreate 1.0.4.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.1.0.schema.json

PackageIdentifier: Thonny.Thonny
PackageVersion: 3.3.14
Installers:
- Architecture: neutral
  InstallerType: inno
  InstallerUrl: https://github.com/thonny/thonny/releases/download/v3.3.13/thonny-3.3.13.exe
  InstallerSha256: 3E95738C44F95835DFBECC4BABDFBFA4E86E75EA4FC4F6B127FDE329EE4BD458
ManifestType: installer
ManifestVersion: 1.1.0

Thonny.Thonny.yaml:

# Created using wingetcreate 1.0.4.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.1.0.schema.json

PackageIdentifier: Thonny.Thonny
PackageVersion: 3.3.14
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.1.0

To test, put these in a folder and use winget -m <folder_name>. Note, it is necessary to use the folder name not the path to the manifest file (https://github.com/microsoft/winget-cli/issues/1064)

So, either the wingetcreate tool could be used to create these at each release (in CI?), or some template based on the above could be used, with some kind of bat file to increment the version. Anyway, not a priority issue but just some ideas.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
adigitoleocommented, Dec 15, 2022

Yeah I just saw that as well, it’s better than I thought they are aware of the issue and are looking into it e.g. https://github.com/microsoft/winget-pkgs/issues/1515

The action looks good, pretty new though. Alternatively, it might be possible to follow the PowerToys approach.

1reaction
ppvnfcommented, Dec 15, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create your package manifest | Microsoft Learn
Manifests are YAML files containing metadata used by the Windows Package Manager to install and upgrade software on the Windows operating system ...
Read more >
Windows Package Manager Community Repository - GitHub
The Microsoft community Windows Package Manager manifest repository - GitHub - microsoft/winget-pkgs: The Microsoft community Windows Package Manager ...
Read more >
Using Winget with custom manifests (and auto updates)
At the moment building a custom Winget repo is not an easy task, but you can deploy using a custom manifest. This blog...
Read more >
Windows Package Manager Manifest Creator - winstall
The Windows Package Manager Manifest Creator command-line tool. ... winget install --id=Microsoft.WingetCreate -e. Last updated 27 days ago.
Read more >
Producing packages for Windows Package Manager
Windows Package Manager Manifest Creator aka WingetCreate is a tool "designed to help generate or update manifest files for the Community ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found