winget-cli
winget-cli copied to clipboard
[Feature request] Handle multiple download sources/mirrors
Description of the new feature/enhancement
Request
- Ability to add multiple URLs to same installer
Why?
- Speed
- Example: Foxit CDN is super slow. But they got two CDNs. Forces combined, 2x super slow = slow.
- Reliability, redundance.
Example
- https://cdn01.foxitsoftware.com/product/reader/desktop/win/11.0.1/FoxitPDFReader1101_L10N_Setup_Prom.exe
- https://cdn02.foxitsoftware.com/product/reader/desktop/win/11.0.1/FoxitPDFReader1101_L10N_Setup_Prom.exe
Potential blocker
- Requires complex download logic that might not be in place already?
- Free Download Manager manages it for instance

- Free Download Manager manages it for instance
Proposed technical implementation details (optional)
- Update cli to handle the download logic, if not already implemented.
- Update manifest scheme to accept one or multiple URLs to the same file.
The problem with this is it complicates verifying the download and any retry logic
Maybe one could use a open source downloader like aria2?
- https://github.com/aria2/aria2
And use exit code + checksum to verify success.
Related to:
- #225
- #673
Similor issue with KiCad, Different mirrors has different bandwidth available depending on the location you are downloading from. Default github source is very very slow.