chore(website): generate Mac download link from package version

This commit is contained in:
Mohamed Boudra
2026-02-16 10:55:54 +07:00
parent 04a06197de
commit 6c7ce63272
3 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -1,8 +1,12 @@
import * as React from 'react'
import { createFileRoute } from '@tanstack/react-router'
import { CursorFieldProvider } from '~/components/butterfly'
import websitePackage from '../../package.json'
import '~/styles.css'
const desktopVersion = websitePackage.version
const macDownloadHref = `https://github.com/getpaseo/paseo/releases/download/v${desktopVersion}/Paseo_${desktopVersion}_aarch64.dmg`
export const Route = createFileRoute('/')({
head: () => ({
meta: [
@@ -194,7 +198,7 @@ function GetStarted() {
<CodeBlock>npm install -g @getpaseo/cli && paseo</CodeBlock>
<div className="flex flex-col sm:flex-row gap-3">
<a
href="https://github.com/getpaseo/paseo/releases/download/v0.1.6/Paseo_0.1.6_aarch64.dmg"
href={macDownloadHref}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center justify-center gap-2 rounded-lg border border-white/20 px-4 py-2 text-sm font-medium text-white hover:bg-white/10 transition-colors"