You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: how to handle installers without direct links? #48
Area-Validation-PipelineIssues related to the manifest validation pipeline.Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
As I'm playing with this tool, I notice a great deal of Win32 apps have installers which are not available for direct link. This prevents them from being used with winget.
The URL is misleading, however: this isn't the actual installer link, it's a page (with ads) that programmatically triggers downloading the installer. This way, there is no direct link to the installer, and thus, fosshub gets ad views to subsidize their bandwidth.
Looking at Irfanview's download page, all the installers are on 3rd party sites, and all of them prevent hotlinking like this.
How can I submit a manifest when the installer doesn't have a direct URL? Obviously, I could host the installer myself, but my servers couldn't handle e.g. a million downloads. Will Microsoft fetch these installers and mirror them on its own CDN? IMO, this is the best option.
Follow up: I tried moving the installer to my own CDN and direct linking to that, but that doesn't work either. The PR fails saying it couldn't validate whether the installer contained malicious software. 🤷♀️🏳
The package manager bot determined there was an issue with one of the installers listed in the url field, and cannot continue. Please verify the installers are not malicious. If you feel this failure is in error, please file an issue.
This has been something we've been investigating. We do SmartScreen and a few other checks to reduce the likelihood of malicious software ending up in the repository.
You can download the file and then check for the actual download link in your browser.
Those are usually dynamically generated links that expire. I'm also looking for a good solution to this but have not found one outside of hosting it myself.
Area-Validation-PipelineIssues related to the manifest validation pipeline.Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
Activity
JudahGabriel commentedon May 5, 2020
Follow up: I tried moving the installer to my own CDN and direct linking to that, but that doesn't work either. The PR fails saying it couldn't validate whether the installer contained malicious software. 🤷♀️🏳
The URL to the installer is on my CDN: https://winget.b-cdn.net/iview454_setup.exe
Exact error I'm getting:
I do feel it's in error.
denelon commentedon May 5, 2020
This has been something we've been investigating. We do SmartScreen and a few other checks to reduce the likelihood of malicious software ending up in the repository.
nathpete-msft commentedon May 5, 2020
Judah Gabriel Himango (@JudahGabriel) in this specific case IrfanView does provide their own hosting, they just hide it under alternate downloads:
https://www.irfanview.info/files/iview454_x64.zip
I'd recommend taking a look at where manifests other package managers like Scoop are pulling from as a reference point. That's how I found that link for IrfanView:
https://github.com/lukesampson/scoop-extras/blob/master/bucket/irfanview.json
chausner commentedon May 21, 2020
Even that link is not a direct download:
They deliberately got rid of all direct links.
You only get the direct download when setting the referer appropriately:
jgkumaran commentedon May 24, 2020
You can download the file and then check for the actual download link in your browser.
lavinir commentedon May 24, 2020
Those are usually dynamically generated links that expire. I'm also looking for a good solution to this but have not found one outside of hosting it myself.
JudahGabriel commentedon May 26, 2020
Yep, these are dynamic links that are generated with a special token. This isn't a URL that can be used in winget packages; the link won't work.
This is again why winget needs to have its own CDN mirror of installers.
Implement search across all fields (microsoft#48)