-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix RELEASES downloading from private repo #103
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/vercel/hazel/HXK18qcoW6NSF9yBzNbwdjnfAUj3 |
Also i added ability to download any file from latest release. It is needed for Squirrel Windows to download nupkg file via proxy. |
@anthrax63 nice work! I needed these changes in order to have a functioning auto updater for our Windows build. These changes should be merged to master! |
Any updates? |
matches[0], | ||
`${this.config.url}/download/nupkg?update=true` | ||
`${this.config.url}/download/latest/${matches[0]}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change
${this.config.url}/download/latest/${matches[0]}
to
https://${this.config.url}/download/latest/${matches[0]}
To avoid/fix Squirrel 4294967295 error: System.Exception: Filename can either be an absolute HTTP[s] URL, or a file name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that PR works. Any plans on merging it to master?
In the previous version, the RELEASES file was downloaded using the browser download url, which gives 404 for private repositories.