https://api.github.com/repos/doitsujin/dxvk/releases/latest also produces:
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3/repos/releases/#get-the-latest-release"
}
I'm not aware of any way to do this on github.
There might be some workarounds like adding a text file to the repo containing a URL pointing to the latest release or something, but that's kind of cumbersome.
You could try to create a tagged release called latest. Then edit the tag to update the binaries each release if you want.
You can also use Github "pages" and simply create some fixed link that always points to the latest release. It will still need to be updated somehow, but you can script it by querying the latest tag for example.
Editing tags is bad practice, afaik..
@austin987 : May be winetricks can simply calculate the latest tag? It can use git for that (though that becomes a prerequisite).
@shmerl, that would require checking out the git repo, currently we just download the binaries.
Brainstorming: Do you have a release script? The script could provide a stable URL when publishing a release.
There could be a file named RELEASE or VERSION, containing the latest version number/release, and the url can be deduced with just that (I do this for the dxvk-bin PKGBUILD).
Looks like the links pointing to the raw repository files are stable (such as https://raw.githubusercontent.com/doitsujin/dxvk/master/README.md) so i guess that's actually an option.
Edit: Done as of 357a75eb88f0c192fd6ed614c98ca8efa7af7df8. Please let me know if that works.
@doitsujin works for me, thanks. For reference, it's at https://github.com/Winetricks/winetricks/commit/c423a85b3cfda1e6181fc8164b089842964a0794
Great, thanks for reporting back.
Nothing extracted yet.
Some projects like winetricks can benefit from linking to a fixed URL that always points to the latest release of dxvk, to avoid constantly bumping the version in their code. Is there any way to do it?
This suggests that it can be https://github.com/doitsujin/dxvk/releases/latest but it doesn't seem to do anything.