Quoting Felix Lechner (2021-11-04 20:17:49)
> For anyone having issues with Gitea's new dynamic download links [1] here is
> a debian/watch file that works.
>
> * * *
>
> version=4
> opts=\
> downloadurlmangle=s/\/releases\/tag\/(\d\S+)$/\/archive\/$1\.tar\.gz/,\
> filenamemangle=s/.+\/tag\/(\d\S+)$/foot-$1\.tar\.gz/ \
> https://codeberg.org/dnkl/foot/releases .*/releases/tag/(\d\S+)
Not all projects use releases. Here is a watch file that works with git tags
which also use data-url attribute instead of href:
version=4
opts=downloadurlmangle=s{/src/tag/(@ANY_VERSION@)}{/archive/$1.tar.gz},\
filenamemangle=s{.*/(.*)}{@PACKAGE@-$1.tar.gz} \
https://gitlab.mister-muffin.de/josch/@PACKAGE@/tags /josch/@PACKAGE@/src/tag/([0-9.]+)Attachment:
signature.asc
Description: signature