| 1 |
version=4 |
| 2 |
# searchmode: use searchmode plain to search in the JSON returned by |
| 3 |
# the API |
| 4 |
# filenamemangle: extract from the URL the GitHub project name (the last |
| 5 |
# path part before /tarball/) and the version, |
| 6 |
# to generate a resulting tarball named: |
| 7 |
# ${PROJECT_NAME}-${VERSION}.tar.gz |
| 8 |
# pgpsigurlmangle: retrieve also the tarball PGP signature assuming it |
| 9 |
# was uploaded with name ${PROJECT_NAME}-v${VERSION} |
| 10 |
# extracting from the tarball download URL the GitHub |
| 11 |
# username/organization, the GitHub project name and |
| 12 |
# the version generating the signature URL as required |
| 13 |
# by GitHub |
| 14 |
# URL: use the project API URL to get the release information, looking |
| 15 |
# for the tarball URL and extracting the version from the last part |
| 16 |
# of the URL path. |
| 17 |
opts=searchmode=plain,\ |
| 18 |
filenamemangle=s~.+/([^/]+)/tarball/(@ANY_VERSION@)~$1-$2.tar.gz~ \ |
| 19 |
https://api.github.com/repos/codereader/DarkRadiant/releases \ |
| 20 |
https://api.github.com/repos/codereader/DarkRadiant/tarball/@ANY_VERSION@ |
| 21 |
|
| 22 |
|