microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.64k stars 4.5k forks source link

Auto-Updating manifest for new version/ meta-manifest #15656

Open JustMyGithub opened 3 years ago

JustMyGithub commented 3 years ago

Description of the new feature/enhancement

As I understand Winget, an update of an application causes the need for the community to create a new manifest. As many (probably most) public manifests do only reference official setup files (and are not "silent" re-packages) There should be a way for a more generic definition that does not rely on a quick response of a maintainer (and maybe also the winget team to accept a PR)

Proposed technical implementation details (optional)

Define (in the manifest or in some kind of meta-manifest) where the official information about version (and maybe download url) can be retrieved. This means to provide an url and a location within the file referenced by the url. The location within the file can be defined by several techniques, including StringBetween (define the text before and after the Information), XPath (as most sources will be html files) or RegEx.

The repository server checks for updates every 24h or so and updates the the manifest if changes are detected (checksum, download url, version number).

LeonarddeR commented 3 years ago

I think this would be very helpful, especially for nightly/insider/alpha version of software.

denelon commented 3 years ago

We already have automation for determining if a manifest is no longer functioning due to hash-mismatch or a URL that is no longer valid. This seems like a request to have the community repository or some automation associated with it to see if a new version of a package is available. This may be closed in the future as a duplicate as that request has been made before.

JustMyGithub commented 3 years ago

That depends on the feature request that you did not reference to.

denelon commented 3 years ago

Here is one of the examples: https://github.com/microsoft/winget-pkgs/issues/1184

vedantmgoyal9 commented 3 years ago

Related or Duplicate of: #500 #1184 #1515

vedantmgoyal9 commented 3 years ago

@denelon Can we close this and #1184 as they will be covered in #500.

denelon commented 3 years ago

@vedantmgoyal2009 this one is looking more like the issue we will use to track adding metadata to the .package file once we have had a chance to flesh the design out more. We want to cover not only GitHub release, but also things with an RSS feed and potentially other mechanisms for determining when a new version is available and where we could programmatically check.