Skip to content
Merged
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
A desktop interface for the [StarNet2](https://starnetastro.com/cli-tools/starnet/) star removal command-line tool, on macOS, Windows and Linux.

<p align="center">
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_aarch64.dmg"><img src="https://img.shields.io/badge/Apple%20Silicon-3F454D?style=for-the-badge&logo=apple&logoColor=white" alt="Download for Mac (Apple Silicon)" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_x64.dmg"><img src="https://img.shields.io/badge/Intel-3F454D?style=for-the-badge&logo=apple&logoColor=white" alt="Download for Mac (Intel)" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_x64-setup.exe"><img src="https://img.shields.io/badge/Windows-3F454D?style=for-the-badge&logo=windows11&logoColor=white" alt="Download for Windows" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_amd64.AppImage"><img src="https://img.shields.io/badge/Linux-3F454D?style=for-the-badge&logo=linux&logoColor=white" alt="Download for Linux" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_aarch64.dmg"><img src="https://img.shields.io/badge/Apple%20Silicon-000000?style=for-the-badge&logo=apple&logoColor=F0F0F0" alt="Download for Mac (Apple Silicon)" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_x64.dmg"><img src="https://img.shields.io/badge/Intel-000000?style=for-the-badge&logo=apple&logoColor=F0F0F0" alt="Download for Mac (Intel)" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_x64-setup.exe"><img src="https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI%2BPHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDMuNCA5LjggMnY5LjVIMHpNMTAuOSAxLjkgMjQgMHYxMS41SDEwLjl6TTAgMTIuNWg5LjhWMjJMMCAyMC42ek0xMC45IDEyLjVIMjRWMjRsLTEzLjEtMS45eiIvPjwvc3ZnPg%3D%3D" alt="Download for Windows" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_amd64.AppImage"><img src="https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black" alt="Download for Linux" /></a>
<a href="https://github.com/Ripwords/starnetGUI/releases/download/v2.0.0/starnetGUI_2.0.0_amd64.deb"><img src="https://img.shields.io/badge/Debian-D70A53?style=for-the-badge&logo=debian&logoColor=white" alt="Download for Debian" /></a>
</p>

<p align="center">
Expand Down
8 changes: 4 additions & 4 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ setVersion(conf, /("version":\s*)"[^"]+"/, `$1"${version}"`);
setVersion(cargo, /^version = "[^"]+"$/m, `version = "${version}"`);
setVersion(lock, /(name = "starnet-gui"\nversion = )"[^"]+"/, `$1"${version}"`);

// Point the README's four download buttons at this version's assets. The tag
// Point the README's download buttons at this version's assets. The tag
// and the filename both carry the version, so they have to move together. A
// silent miss here — a renamed bundle, an edited README — would ship four dead
// silent miss here — a renamed bundle, an edited README — would ship dead
// buttons on the repo homepage, so assert the rewrite actually landed.
const readme = "README.md";
const stamped = readFileSync(readme, "utf8")
Expand All @@ -50,9 +50,9 @@ const stamped = readFileSync(readme, "utf8")
const stampedLinks = stamped.match(
new RegExp(`/releases/download/v${version}/starnetGUI_${version}_`, "g"),
);
if (stampedLinks?.length !== 4) {
if (stampedLinks?.length !== 5) {
throw new Error(
`README.md: expected 4 download links for v${version}, rewrote ${stampedLinks?.length ?? 0}. ` +
`README.md: expected 5 download links for v${version}, rewrote ${stampedLinks?.length ?? 0}. ` +
`Check the bundle filenames in the release workflow against the links in README.md.`,
);
}
Expand Down