Simpler file names
tim-lebedkov opened this issue · 3 comments
please consider using simpler file names for releases.
Example: ag-2.2.0.22-x64.zip
instead of ag-2020-01-11_2.2.0-22-ga509a81-x64.zip
It makes it possible to discover new releases in package managers automatically (e.g. https://www.npackd.org/p/ag64)
Can't you use GitHub API in the package managers?
This is a script I am using for downloading the latest release automatically.
https://gist.github.com/k-takata/6c90f977abfe0dc6ee0970ea3379c1f1
the newest version number for 95% of all programs can be detected by downloading an HTTP page and searching there via a regular expression. This is what I do in Npackd right now. Everything else requires work (per package).
I made my detection code more complicated and can now also process your file names. This is the regular expression: k-takata/the_silver_searcher-win32/releases/download/\d\d\d\d-\d\d-\d\d%2F([\d.]+-\d+)-[a-z0-9]+/ag-\d\d\d\d-\d\d-\d\d_[\d.]+-\d+-[a-z0-9]+-x86.zip