From 1ff432241a68697c699a0fe07039d87fa7fd9f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Wed, 18 Feb 2026 07:15:12 +0100 Subject: [PATCH] chore(landing): derive download version from package.json dynamically Replace hardcoded v0.2.0 version strings in platform download cards with the `{version}` variable read from package.json. Bump site package version to 0.2.0. --- package.json | 2 +- src/pages/index.astro | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f68fd4b..dd81c1e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zblade-dev", "type": "module", - "version": "0.1.1", + "version": "0.2.0", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/src/pages/index.astro b/src/pages/index.astro index d2f7b9d..d674d04 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -202,7 +202,7 @@ const version = pkg.version ?? "";
🪟
WINDOWS
-
v0.2.0 / x64, arm64
+
v{version} / x64, arm64
MSI, EXE
DOWNLOAD →
@@ -212,7 +212,7 @@ const version = pkg.version ?? "";
🍎
macOS
-
v0.2.0 / arm64 (Apple Silicon)
+
v{version} / arm64 (Apple Silicon)
DMG, TAR.GZ
DOWNLOAD →
@@ -222,7 +222,7 @@ const version = pkg.version ?? "";
🐧
LINUX
-
v0.2.0 / amd64
+
v{version} / amd64
DEB, RPM, AppImage
DOWNLOAD →