Skip to content

Commit 412c124

Browse files
A13xB0LargeSparkclaude
authored
a download page, and one command that installs through your package manager (#5)
* a download page, and one command that installs through your package manager Stages 5 and 6 of MeshBench/meshbench#568, closing its #510 and giving #511 and Both Download buttons pointed at the releases page, which drops a first-time visitor onto a list of files with no indication which one they want. There is a page now: the platform is detected and the tabs override it, and bundled or compact is one switch that changes every filename, size and command at once rather than a choice repeated at every leaf. install.sh is the hero's alternative, and the reason it exists is that the raw apt sequence - key, sources list, update, install - is four lines of paste as the first thing somebody sees. It works out the distribution, adds our repository or tap, and then runs apt or brew: through the package manager rather than instead of it, so updates keep arriving with the rest of the system and MeshBench does not acquire a third install path nobody maintains. Same line on macOS and Linux, and on macOS it goes through Homebrew so the quarantine flag is handled. It follows the variant: bare installs meshbench, --bundled installs meshbench-bundled. A distribution nothing is published for is told so and sent to the AppImage rather than guessed at, because a wrong guess is a half-installed machine. --dry-run prints the whole sequence and runs none of it, which is also how both branches were exercised from one machine. The explicit steps stay on the page, as "Homebrew, by hand" and "apt, by hand", with a link to read the script. Not wanting to pipe a script into a shell is a fair position and deserves a real answer. Every download is a plain link to releases/latest/download/<name>, which GitHub resolves server-side, and every one of them is in the markup rather than written by script - so the page works with scripting off. The release API is consulted once for the version, the date and the real sizes, with what shipped as the fallback, because the anonymous API is 60 requests an hour per address and that failure would land on the one page whose job is to work for somebody who has never seen this project. Eleven redirect stubs under /download/ give every asset a short link. Colour is the brand's own tokens. Orange appears twice and only twice, in the mark and on the one download being recommended, because orange is signal. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9HbD44EKWWTRYgxbFGxf6 * apt: the signing key's public half, and what it is for The key apt checks the repository against. Dearmoured, which is the form signed-by= wants: an armoured one fails with a signature error that does not mention the format, which is a bad half hour. The pool and the index that go beside it are written by publish-apt.yml in MeshBench/meshbench when a release publishes. Nothing here is edited by hand. Fingerprint 503C C0C1 A132 97F1 B143 3E1A F0AC 901F 2454 7735. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9HbD44EKWWTRYgxbFGxf6 --------- Co-authored-by: R0ck <alex@hectospark.co.uk> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 93e8c85 commit 412c124

16 files changed

Lines changed: 1062 additions & 2 deletions

File tree

‎apt/README.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# The MeshBench apt repository
2+
3+
Served from this repository at `https://meshbench.github.io/apt`. The pool and
4+
the index are written by `publish-apt.yml` in
5+
[MeshBench/meshbench](https://github.com/MeshBench/meshbench) when a release is
6+
published; an edit made here by hand is overwritten by the next one.
7+
8+
```
9+
curl -fsSL https://meshbench.github.io/apt/meshbench.gpg \
10+
| sudo tee /usr/share/keyrings/meshbench.gpg > /dev/null
11+
12+
echo "deb [signed-by=/usr/share/keyrings/meshbench.gpg] \
13+
https://meshbench.github.io/apt stable main" \
14+
| sudo tee /etc/apt/sources.list.d/meshbench.list
15+
16+
sudo apt update && sudo apt install meshbench
17+
```
18+
19+
`meshbench` is the application on its own. `meshbench-bundled` carries the QEMU
20+
and Renode emulators with it, and the two conflict, so a machine has exactly one
21+
and can swap without uninstalling first.
22+
23+
`meshbench.gpg` is the public half of the signing key, dearmoured, which is the
24+
form `signed-by=` wants. Its fingerprint is
25+
26+
503C C0C1 A132 97F1 B143 3E1A F0AC 901F 2454 7735
27+
28+
Old versions stay in the pool on purpose: a repository that drops what it
29+
replaced breaks anybody pinning a version.

‎apt/meshbench.gpg‎

1.16 KB
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading meshbench-x86_64-compact.AppImage</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-x86_64-compact.AppImage">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-x86_64-compact.AppImage">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-x86_64-compact.AppImage">meshbench-x86_64-compact.AppImage</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

‎download/appimage/index.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading meshbench-x86_64-bundled.AppImage</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-x86_64-bundled.AppImage">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-x86_64-bundled.AppImage">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-x86_64-bundled.AppImage">meshbench-x86_64-bundled.AppImage</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

‎download/index.html‎

Lines changed: 728 additions & 0 deletions
Large diffs are not rendered by default.

‎download/linux/compact/index.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading meshbench-linux-x86_64-compact.tar.gz</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-linux-x86_64-compact.tar.gz">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-linux-x86_64-compact.tar.gz">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-linux-x86_64-compact.tar.gz">meshbench-linux-x86_64-compact.tar.gz</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

‎download/linux/index.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading meshbench-linux-x86_64-bundled.tar.gz</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-linux-x86_64-bundled.tar.gz">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-linux-x86_64-bundled.tar.gz">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/meshbench-linux-x86_64-bundled.tar.gz">meshbench-linux-x86_64-bundled.tar.gz</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

‎download/macos/compact/index.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading MeshBench-arm64-compact.dmg</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/MeshBench-arm64-compact.dmg">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/MeshBench-arm64-compact.dmg">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/MeshBench-arm64-compact.dmg">MeshBench-arm64-compact.dmg</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

‎download/macos/index.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading MeshBench-arm64-bundled.dmg</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/MeshBench-arm64-bundled.dmg">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/MeshBench-arm64-bundled.dmg">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/MeshBench-arm64-bundled.dmg">MeshBench-arm64-bundled.dmg</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

‎download/sha256sums/index.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Downloading SHA256SUMS</title>
6+
<meta http-equiv="refresh" content="0; url=https://github.com/MeshBench/meshbench/releases/latest/download/SHA256SUMS">
7+
<link rel="canonical" href="https://github.com/MeshBench/meshbench/releases/latest/download/SHA256SUMS">
8+
</head>
9+
<body>
10+
<p>Downloading <a href="https://github.com/MeshBench/meshbench/releases/latest/download/SHA256SUMS">SHA256SUMS</a>. If nothing happens, follow that link,
11+
or go back to <a href="/download/">the download page</a>.</p>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)