fix(www): point download buttons at Gitea + v0.7.12

landing.js hardcoded the OS-aware download URLs to the old GitHub releases
page at v0.7.10, so macOS/Windows/Linux download buttons linked to stale
GitHub assets. Point releasesUrl at the Gitea releases page and bump the
version to 0.7.12; add a v0.7.12 changelog entry.
This commit is contained in:
2026-09-01 14:15:34 +08:00
parent 341354ecb9
commit c8a06a5710
2 changed files with 12 additions and 3 deletions
+3 -3
View File
@@ -59,12 +59,12 @@
const isMobile = /Mobi|Android|iPhone|iPad|iPod/i.test(userAgent);
const keepLabel = downloadBtn.hasAttribute("data-download-label");
const releasesUrl = "https://github.com/AdrianBonpin/gridline/releases";
const version = "0.7.10";
const releasesUrl = "https://git.ranio.xyz/adrianbonpin/gridline/releases";
const version = "0.7.12";
if (isMobile) {
downloadBtn.href = releasesUrl;
if (!keepLabel) downloadBtn.textContent = "Get it on GitHub";
if (!keepLabel) downloadBtn.textContent = "Get it on Gitea";
} else if (isMac) {
downloadBtn.href = `${releasesUrl}/download/v${version}/Gridline_${version}_aarch64.dmg`;
if (!keepLabel) downloadBtn.textContent = "Download for macOS";