1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
version=4
# So, thanks to Microsoft changing GitHub's releases page so
# it's dynamic content via JS or such, and NOT static text...
# we have to do a convoluted matching on the github API
# output for the repo's releases, and since it's JSON do a
# plain search to make this work.
#
# Unfortunately, we also have to do a full URL format match
# on the URL we want for the tarball download and mangle the
# filename appropriately.
#
# Inspired by the solution specified here:
# https://lists.debian.org/debian-devel/2022/09/msg00229.html
#
# ... and adapted for autogenerated version tarballs from GH.
#
opts="searchmode=plain, \
filenamemangle=s/.+\/@ANY_VERSION@/@PACKAGE@-$1.tar.gz/" \
https://api.github.com/repos/teward/@PACKAGE@/releases https:\/\/api.github.com\/repos\/teward\/@PACKAGE@\/tarball/@ANY_VERSION@
|