Small JS page (to be hosted in github pages) to download the latest release
nxadm opened this issue · 3 comments
It would be great of we had a fix url for downloading the latest release. The simplest way I can think of is some javascript doing some URL rewriting.
At the time of writing:
https://rakudo-pkg.github.io/latest-release?os=ubuntu&version=16.04&arch=amd64 should fwd to https://github.com/nxadm/rakudo-pkg/releases/download/2017.09.1%2B2/perl6-rakudo-moarvm-ubuntu16.04_20170900-02_amd64.deb
and
https://rakudo-pkg.github.io/latest-release-checksum?os=ubuntu&version=16.04&arch=amd64 should fwd to https://github.com/nxadm/rakudo-pkg/releases/download/2017.09.1%2B2/perl6-rakudo-moarvm-ubuntu16.04_20170900-02_amd64.deb.sha1
The latest release can be found at: https://github.com/nxadm/rakudo-pkg/releases/latest
Javier,
I merged the PR. I will activate it later because I am simplifying the names of the packages and some very small changes will be needed to reflect these changes. Leaving the ticket open for now.
C.
Implemented by @javier-lopez and @tdedobbeleer.
Thx!
The JS works fine for desktop users, but I wonder if there is a way to generate something that could be useful with wget or curl (I am thinking when used in containers). Any clue?
cc: @javier-lopez and @tdedobbeleer.