Skip to content

Commit

Permalink
website: Publish release notes and binaries for 0.21.0.
Browse files Browse the repository at this point in the history
Special changes to the download page for 0.21.0:

- Simplify installation script, as the 0.21.0 release archives now name the
  binary within them just "elvish".

- Add RISC-V to the CPU radiobox.
  • Loading branch information
xiaq committed Aug 14, 2024
1 parent dbc792e commit bbeb8a2
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Elvish 0.21.0 has been released on 2024-08-14, six months after 0.20.0, bringing
new features and bugfixes.

As usual, [prebuilt binaries](https://elv.sh/get) are offered for most common
platforms.

# Notable new features

- A new [`with`](../ref/language.html#with) command for running a lambda with
Expand Down
5 changes: 5 additions & 0 deletions website/blog/index.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
prelude = "prelude"
autoIndex = true

[[articles]]
name = "0.21.0-release-notes"
title = "Elvish 0.21.0 release notes"
timestamp = "2024-08-14"

[[articles]]
name = "0.20.1-release-notes"
title = "Elvish 0.20.1 release notes"
Expand Down
2 changes: 1 addition & 1 deletion website/blog/prelude.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The draft release notes for the next release can be found
[here on GitHub](https://github.com/elves/elvish/blob/master/0.21.0-release-notes.md).
[here on GitHub](https://github.com/elves/elvish/blob/master/0.22.0-release-notes.md).
50 changes: 39 additions & 11 deletions website/get/all-binaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mirror site</a>.
<th>amd64</th>
<th>386</th>
<th>arm64</th>
<th>riscv64</th>
</tr>
<tr>
<td>HEAD (<a href="https://github.com/elves/elvish/blob/master/0.21.0-release-notes.md">draft release notes</a>)</td>
Expand All @@ -33,26 +34,32 @@ mirror site</a>.
@dl Linux linux-arm64/elvish-HEAD.tar.gz
@dl macOS darwin-arm64/elvish-HEAD.tar.gz
</td>
<td>
@dl Linux linux-riscv64/elvish-HEAD.tar.gz
</td>
</tr>
<tr>
<td>
0.20.1 (<a href="../blog/0.20.1-release-notes.html">release notes</a>)
0.21.0 (<a href="../blog/0.21.0-release-notes.html">release notes</a>)
</td>
<td>
@dl Linux linux-amd64/elvish-v0.20.1.tar.gz
@dl macOS darwin-amd64/elvish-v0.20.1.tar.gz
@dl FreeBSD freebsd-amd64/elvish-v0.20.1.tar.gz
@dl NetBSD netbsd-amd64/elvish-v0.20.1.tar.gz
@dl OpenBSD openbsd-amd64/elvish-v0.20.1.tar.gz
@dl Windows windows-amd64/elvish-v0.20.1.zip
@dl Linux linux-amd64/elvish-v0.21.0.tar.gz
@dl macOS darwin-amd64/elvish-v0.21.0.tar.gz
@dl FreeBSD freebsd-amd64/elvish-v0.21.0.tar.gz
@dl NetBSD netbsd-amd64/elvish-v0.21.0.tar.gz
@dl OpenBSD openbsd-amd64/elvish-v0.21.0.tar.gz
@dl Windows windows-amd64/elvish-v0.21.0.zip
</td>
<td>
@dl Linux linux-386/elvish-v0.20.1.tar.gz
@dl Windows windows-386/elvish-v0.20.1.zip
@dl Linux linux-386/elvish-v0.21.0.tar.gz
@dl Windows windows-386/elvish-v0.21.0.zip
</td>
<td>
@dl Linux linux-arm64/elvish-v0.20.1.tar.gz
@dl macOS darwin-arm64/elvish-v0.20.1.tar.gz
@dl Linux linux-arm64/elvish-v0.21.0.tar.gz
@dl macOS darwin-arm64/elvish-v0.21.0.tar.gz
</td>
<td>
@dl Linux linux-riscv64/elvish-v0.21.0.tar.gz
</td>
</tr>
</table>
Expand All @@ -69,6 +76,27 @@ for historical interest.
<th>386</th>
<th>arm64</th>
</tr>
<tr>
<td>
0.20.1 (<a href="../blog/0.20.1-release-notes.html">release notes</a>)
</td>
<td>
@dl Linux linux-amd64/elvish-v0.20.1.tar.gz
@dl macOS darwin-amd64/elvish-v0.20.1.tar.gz
@dl FreeBSD freebsd-amd64/elvish-v0.20.1.tar.gz
@dl NetBSD netbsd-amd64/elvish-v0.20.1.tar.gz
@dl OpenBSD openbsd-amd64/elvish-v0.20.1.tar.gz
@dl Windows windows-amd64/elvish-v0.20.1.zip
</td>
<td>
@dl Linux linux-386/elvish-v0.20.1.tar.gz
@dl Windows windows-386/elvish-v0.20.1.zip
</td>
<td>
@dl Linux linux-arm64/elvish-v0.20.1.tar.gz
@dl macOS darwin-arm64/elvish-v0.20.1.tar.gz
</td>
</tr>
<tr>
<td>
0.20.0 (<a href="../blog/0.20.0-release-notes.html">release notes</a>)
Expand Down
20 changes: 5 additions & 15 deletions website/get/prelude.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener('DOMContentLoaded', main);

const binaryAvailable = new Set([
'linux-amd64', 'linux-386', 'linux-arm64',
'linux-amd64', 'linux-386', 'linux-arm64', 'linux-riscv64',
'darwin-amd64', 'darwin-arm64',
'freebsd-amd64',
'netbsd-amd64',
Expand Down Expand Up @@ -100,7 +100,6 @@ function genScriptHTML(os, arch, version, dir, sudo, mirror) {
const urlBase = `https://${host}/${os}-${arch}/elvish-${version}`;
if (os === 'windows') {
const url = link(urlBase + '.zip');
const renameCmd = version === 'HEAD' ? '' : `Move-Item -Force elvish-${version}.exe elvish.exe\n`;
return `& {
md "${dir}" -force > $null
$UserPath = [Environment]::GetEnvironmentVariable("PATH", "User")
Expand All @@ -111,23 +110,12 @@ if (!(($UserPath -split ';') -contains "${dir}")) {
cd "${dir}"
Invoke-RestMethod -Uri '${url}' -OutFile elvish.zip
Expand-Archive -Force elvish.zip -DestinationPath .
${renameCmd}rm elvish.zip
rm elvish.zip
}`;
} else {
const url = link(urlBase + '.tar.gz');
const sudoPrefix = sudo == 'dont' ? '' : sudo + ' ';
if (version === 'HEAD') {
// The filename inside HEAD archives are just called "elvish", so we can
// just let curl write to stdout and extract it.
return highlightSh(`curl -so - ${url} | ${sudoPrefix}tar -xzvC ${dir}`);
} else {
return highlightSh(`{
curl -o elvish-${version}.tar.gz ${url}
tar -xzvf elvish-${version}.tar.gz
${sudoPrefix}cp elvish-${version} ${dir}/elvish
rm elvish-${version}.tar.gz elvish-${version}
}`);
}
return highlightSh(`curl -so - ${url} | ${sudoPrefix}tar -xzvC ${dir}`);
}
}

Expand Down Expand Up @@ -193,6 +181,8 @@ function detectOs(p) {

// Detects GOARCH from navigator.platform and the high entropy data (if
// available).
//
// TODO: Add detection code for RISC-V.
function detectArch(p, data) {
if (data) {
const arch = {
Expand Down
12 changes: 8 additions & 4 deletions website/get/prelude.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
<input type="radio" name="arch" value="386"/>
Intel 32-bit
</label>
<label class="option">
<input type="radio" name="arch" value="riscv64"/>
RISC-V
</label>
</div>
</div>

Expand All @@ -62,8 +66,8 @@ Elvish from source</a>.
<header>Version</header>
<div class="widgets">
<label class="option">
<input type="radio" name="version" value="v0.20.1" checked/>
0.20.1
<input type="radio" name="version" value="v0.21.0" checked/>
0.21.0
</label>
<label class="option">
<input type="radio" name="version" value="HEAD"/>
Expand All @@ -74,11 +78,11 @@ Elvish from source</a>.

<div class="small-print">

0.20.1 is the [latest release](../blog/0.20.1-release-notes.html). Suitable if
0.21.0 is the [latest release](../blog/0.21.0-release-notes.html). Suitable if
you prefer to only update occasionally or need a stable scripting environment.

HEAD is the latest development build. It has the
<a href="https://github.com/elves/elvish/blob/master/0.21.0-release-notes.md" target="_blank">freshest
<a href="https://github.com/elves/elvish/blob/master/0.22.0-release-notes.md" target="_blank">freshest
features</a> and is stable enough for interactive use.

</div>
Expand Down

0 comments on commit bbeb8a2

Please sign in to comment.