Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _bin/generate-downloads-json-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function generate_data($version, $package_name, $basedir, $filename)
return [
'package' => $package_name,
'url' => "https://github.com/roundcube/roundcubemail/releases/download/{$version}/{$filename}",
'version' => $version,
'size' => $size,
'checksum' => $sum,
];
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ libs: {
url: 'https://cdn.jsdelivr.net/npm/less@4.2.0/dist/less.min.js',
sri: 'sha384-SlYTcCEsC10TwMfcpGjqd+bWfA2QdB0CInBtPX6erDT3NnEkhX2X3gJ83UyHtXs3'
},
css: '/styles/styles.min.css?v=2024021800',
css: '/styles/styles.min.css?v=2026021500',
bootstrap: {
css: {
url: 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css',
Expand Down
36 changes: 24 additions & 12 deletions _data/releases.json → _data/downloads.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,76 @@
{
"stable": {
"name": "Stable version",
"version": "1.6.13",
"sources": [
"title": "Stable",
"packages": [
{
"package": "Dependent",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.6.13/roundcubemail-1.6.13.tar.gz",
"version": "1.6.13",
"size": "3.7 MB",
"checksum": "1ee6a0877024b6ee73bda5050686487af7bc88301b2af3355a46c4ce8e327180"
},
{
"package": "Complete",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.6.13/roundcubemail-1.6.13-complete.tar.gz",
"version": "1.6.13",
"size": "5.6 MB",
"checksum": "bdd1bafe79149a6b63f699fa94e7626189ec60e2c37954de7e84ee685dbbf5bb"
},
{
"package": "Framework",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.6.13/roundcube-framework-1.6.13.tar.gz",
"version": "1.6.13",
"size": "1.1 MB",
"checksum": "61a92c3152293f0e8401406e855a57ad8bea5b3f4b647565babe42658bbcddf8"
}
]
},
"old-stable": {
"name": "Old stable",
"version": "1.5.3",
"sources": [
"title": "Old Stable",
"packages": [
]
},
"lts": {
"name": "LTS versions",
"sources": [
"title": "LTS",
"description": "Long Term Support with low maintenance mode. This means only security updates and rare fixes of serious issues will go into these release branches.",
"packages": [
{
"package": "1.5.13 - Complete",
"package": "Complete",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.5.13/roundcubemail-1.5.13-complete.tar.gz",
"version": "1.5.13",
"size": "7.2 MB",
"checksum": "37a8309882d782fa0b39d0f6e1efaa443b96e720e9e2c51106fb230926cca2f9"
}
]
},
"beta": {
"name": "Release candidate",
"version": "1.7-rc4",
"sources": [
"title": "Beta",
"description": "We recommend to test pre-release versions on a separate environment, and don't forget to backup your data before installing.",
"packages": [
]
},
"rc": {
"title": "Release Candidate",
"description": "We recommend to test pre-release versions on a separate environment, and don't forget to backup your data before installing.",
"packages": [
{
"package": "Dependent",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.7-rc4/roundcubemail-1.7-rc4.tar.gz",
"version": "1.7-rc4",
"size": "4.0 MB",
"checksum": "bf148cfd31195fec70e3f285221128a14ace619c61155c6c6f88d0d75edaf776"
},
{
"package": "Complete",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.7-rc4/roundcubemail-1.7-rc4-complete.tar.gz",
"version": "1.7-rc4",
"size": "6.1 MB",
"checksum": "a2a5aa6e0be3a7ab2290f193f233560dd3ef183bd3cd52de415a7b7ac9b6cb1e"
},
{
"package": "Framework",
"url": "https://github.com/roundcube/roundcubemail/releases/download/1.7-rc4/roundcube-framework-1.7-rc4.tar.gz",
"version": "1.7-rc4",
"size": "1.1 MB",
"checksum": "9ee4f4d3ce39a72de9dc23aee57fe4579b9c20e37b1b8899df73340f49335697"
}
Expand Down
29 changes: 12 additions & 17 deletions download/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,16 @@
---
<h1>Download your version of Roundcube</h1>

{% for version in site.data.releases %}
{% assign id = version | first %}
{% assign params = version | last %}

{% if params.sources.size == 0 %}
{% for downlad in site.data.downloads %}
{% assign id = downlad | first %}
{% assign params = downlad | last %}
{% if params.packages.size == 0 %}
{% continue %}
{% endif %}
<h2 id="{{ id }}">{{ params.title }} <a class="anchor" href="#{{ id }}" aria-label="Link to this section: {{ params.title }}"></a></h2>

<h2 id="{{ id }}">{{ params.name }}{% if params.version %} - {{ params.version }}{% endif %} <a class="anchor" href="#{{ id }}" aria-label="Link to this section: {{ id }}"></a></h2>

{% if id == "lts" %}
<p class="text-body-secondary mb-1">Long Term Support with low maintenance mode. This means only security updates and rare fixes of serious issues
will go into these release branches.</p>
{% elsif id == "beta" %}
<p class="text-body-secondary mb-1">We recommend to test beta versions on a separate environment, and don't forget to backup your data before installing.</p>
{% if params.description %}
<p class="text-body-secondary mb-1">{{ params.description }}</p>
{% endif %}

<table class="table table-striped download-table">
Expand All @@ -33,14 +28,14 @@ <h2 id="{{ id }}">{{ params.name }}{% if params.version %} - {{ params.version }
</tr>
</thead>
<tbody>
{% for source in params.sources %}
{% for package in params.packages %}
<tr>
<th class="package fw-normal" scope="row">{{ source.package }}{% if source.package == "Dependent" %}<sup><a href="#fn1" class="text-body-secondary">1</a></sup>{% endif %}</th>
<td class="link text-center text-lg-start"><a href="{{ source.url }}" title="Download now!" class="btn rc-icon btn-rc-download btn-sm"><span>Download</span></a></td>
<td class="size text-nowrap">{{ source.size }}</td>
<th class="package fw-normal" scope="row">{{ package.version }} - {{ package.package }}{% if package.package == "Dependent" %}<sup><a href="#fn1" class="text-body-secondary">1</a></sup>{% endif %}</th>
<td class="link text-center text-lg-start"><a href="{{ package.url }}" title="Download now!" class="btn rc-icon btn-rc-download btn-sm"><span>Download</span></a></td>
<td class="size text-nowrap">{{ package.size }}</td>
<td class="checksum font-monospace text-nowrap text-center text-lg-start pe-3">
<span class="d-none d-lg-inline copy-popover-target">
<span class="copy-target d-block d-lg-inline text-nowrap overflow-auto py-3 py-lg-0">{{ source.checksum }}</span><span class="py-3 py-lg-0"><a class="copy-link" href="#" aria-label="Copy text"></a></span>
<span class="copy-target d-block d-lg-inline text-nowrap overflow-auto py-3 py-lg-0">{{ package.checksum }}</span><span class="py-3 py-lg-0"><a class="copy-link" href="#" aria-label="Copy text"></a></span>
</span>
<a class="d-inline d-lg-none copy-popover-link checksum" href="#" aria-label="SHA-256 checksum" onclick="return false;" data-bs-title="SHA-256 checksum" data-bs-placement="left"></a>
</td>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<div class="download text-center d-flex flex-column justify-content-center justify-content-lg-start align-items-center pt-xl-4">
<a href="/download" class="btn rc-icon btn-rc-download btn-lg" title="Download now!">Download</a>
<span class="version text-body-secondary">Version {{ site.data.releases.stable.version }}</span>
<span class="version text-body-secondary">Version {{ site.data.downloads.stable.packages[0].version }}</span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions styles/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,12 @@ div.color-modes > ul.dropdown-menu {

table.download-table {
th.package {
width: 20%;
width: 30%;
}

td.link,
td.size {
width: 15%;
width: 12%;
}

td.checksum {
Expand Down
Loading