Skip to content
Permalink
Browse files
Migrate to closer.lua download URL format.
  • Loading branch information
mike-jumper committed Apr 22, 2021
1 parent c7965f5 commit 478cc5c79dcbaa02f34d7e2975907b40624f38a4
Showing 12 changed files with 28 additions and 27 deletions.
@@ -1,11 +1,11 @@
{% if include.files != empty %}
<table>
{% assign filename_token = "{}" %}
{% for file in include.files %}
<tr>
{% assign mirror = include.artifact-root | append: include.path %}
{% assign dist = include.checksum-root | append: include.path %}
{% assign filename = include.path | append: file %}
{% assign basename = file | split: "/" | last %}
<td><a href="{{ mirror | append: file }}"
<td><a href="{{ include.artifact-url | replace: filename_token, filename }}"
onclick="trackDownload(
'click',
'{{ basename }}'
@@ -15,7 +15,8 @@
'{{ basename }}'
)">{{ basename }}</a></td>
{% for checksum in include.checksum-suffixes %}
<td>[ <a href="{{ dist | append: file | append: checksum[1] }}">{{ checksum[0] }}</a> ]</td>
{% assign checksum_filename = include.path | append:file | append: checksum[1] %}
<td>[ <a href="{{ include.checksum-url | replace: filename_token, checksum_filename }}">{{ checksum[0] }}</a> ]</td>
{% endfor %}
</tr>
{% endfor %}
@@ -47,8 +47,8 @@ <h1>Apache Guacamole {{ page.title }}</h1>
<!-- Source archives -->
<div class="release-downloads">
{% include download-list.html
artifact-root=page.artifact-root
checksum-root=page.checksum-root
artifact-url=page.artifact-url
checksum-url=page.checksum-url
checksum-suffixes=page.checksum-suffixes
path=page.download-path
files=page.source-dist %}
@@ -62,8 +62,8 @@ <h1>Apache Guacamole {{ page.title }}</h1>
<!-- All binaries -->
<div class="release-downloads">
{% include download-list.html
artifact-root=page.artifact-root
checksum-root=page.checksum-root
artifact-url=page.artifact-url
checksum-url=page.checksum-url
checksum-suffixes=page.checksum-suffixes
path=page.download-path
files=page.binary-dist %}
@@ -8,8 +8,8 @@ summary: >
Screen sharing, recording, improved file transfer, audio input, Docker
support for LDAP.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "incubator/guacamole/0.9.10-incubating/"
checksum-suffixes:
"MD5" : ".md5"
@@ -8,8 +8,8 @@ summary: >
Two-factor authentication, password policies, improvements to Docker and
LDAP.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "incubator/guacamole/0.9.11-incubating/"
checksum-suffixes:
"MD5" : ".md5"
@@ -9,8 +9,8 @@ summary: >
improvements, and fixes for printing, file transfer, and terminal
emulation.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "incubator/guacamole/0.9.12-incubating/"
checksum-suffixes:
"MD5" : ".md5"
@@ -8,8 +8,8 @@ summary: >
CAS single sign-on, fixes for VNC/RDP/SSH/telnet, in-browser playback of
screen recordings, automatic connection failover, 256-color console codes.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "guacamole/0.9.13-incubating/"
checksum-suffixes:
"MD5" : ".md5"
@@ -9,8 +9,8 @@ summary: >
login/logout history, fixes and improvements for RDP, clipboard, file
transfer, and terminal emulation.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "guacamole/0.9.14/"
checksum-suffixes:
"MD5" : ".md5"
@@ -8,8 +8,8 @@ summary: >
User groups, improved clipboard integration, TOTP (Google Authenticator),
RADIUS, dead keys.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "guacamole/1.0.0/"
checksum-suffixes:
"PGP" : ".asc"
@@ -9,8 +9,8 @@ summary: >
and Apache Directory API, fixes and improvements to Docker images, terminal
behavior, and user groups.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "guacamole/1.1.0/"
checksum-suffixes:
"PGP" : ".asc"
@@ -9,8 +9,8 @@ summary: >
connections, numerous fixes for RDP, improvements to TOTP, database
support, and behavior on iOS devices.
artifact-root: "https://archive.apache.org/dist/"
checksum-root: "https://archive.apache.org/dist/"
artifact-url: "https://archive.apache.org/dist/{}"
checksum-url: "https://archive.apache.org/dist/{}"
download-path: "guacamole/1.2.0/"
checksum-suffixes:
"PGP" : ".asc"
@@ -7,8 +7,8 @@ summary: >
Automatic prompting for remote desktop credentials, user group support for
CAS and OpenID, bug fixes.
artifact-root: "https://apache.org/dyn/closer.cgi?action=download&filename="
checksum-root: "https://downloads.apache.org/"
artifact-url: "https://apache.org/dyn/closer.lua/{}?action=download"
checksum-url: "https://downloads.apache.org/{}"
download-path: "guacamole/1.3.0/"
checksum-suffixes:
"PGP" : ".asc"
@@ -23,7 +23,7 @@ updated:
in the [release archives](/releases/). The `date` field should also be
updated to note the actual date and time of release.

3. The `artifact-root`, `checksum-root`, and `download-path` must be updated
3. The `artifact-url`, `checksum-url`, and `download-path` must be updated
to use the release directory (rather than the RC directory) and to *not*
use `dist.apache.org`.

0 comments on commit 478cc5c

Please sign in to comment.