Skip to content

Add a way to provide the executables locally instead of downloading them #2127

@signed-log

Description

@signed-log

Description of the new feature / enhancement

Some sources, like sourceforge, do automatic mirror redirection. But, sometimes this redirection sends you to a very slow mirror, although a better mirror is available, and due to the non-interactive nature of that process, it is impossible to choose the appropriate mirror

Adding a way to bypass downloads by provding our own executables may help speed some environnements like the example above. It could also where executables are stored in a central location, without having to remake manifests to specify source for every used file.

Proposed technical implementation details

Add a --file command switch, that would take a Path as a argument, if passed, such switch would :

  • prevent the Download routine from starting
  • copy the file to the winget download folder
  • check the integrity and continue the install as usual (keeping the security aspect, custom manifests will still be the preferred way to ship custom executables).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureThis is a feature request for the Windows Package Manager client.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions