From c3b64e8d0fd9b1f3931e5a7826da93130a1feb79 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Tue, 7 Jul 2026 11:56:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(website):=20=E4=B8=8B=E8=BD=BD=E9=A1=B5?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=20macOS(.zip)=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOS 自 client-v1.0.59 起由 CI 产出 pangolin-macos-x64.zip 并部署到 /downloads,官网下载页 macOS 卡片从禁用占位改为真实下载直链;iOS 走 TestFlight 无直链、Linux 未接入,保持禁用。astro build 通过。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u --- web/website/src/components/Download.astro | 6 +++--- web/website/src/config/site.ts | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/web/website/src/components/Download.astro b/web/website/src/components/Download.astro index bafa04f..2da4913 100644 --- a/web/website/src/components/Download.astro +++ b/web/website/src/components/Download.astro @@ -6,12 +6,12 @@ import { SITE } from '../config/site'; interface Props { t: T } const { t } = Astro.props; -// href 缺省 = 本轮未接入下载(iOS / macOS / Linux),按钮渲染为禁用态占位。 -// Android + Windows 已由客户端 CI 产出真实产物并部署到 /downloads。 +// href 缺省 = 本轮未接入下载(iOS 走 TestFlight / Linux),按钮渲染为禁用态占位。 +// Android + Windows + macOS 已由客户端 CI 产出真实产物并部署到 /downloads。 const plats: { icon: string; name: string; ver: string; href?: string }[] = [ { icon: 'smartphone', name: 'iOS', ver: 'iOS 16+' }, { icon: 'smartphone', name: 'Android', ver: 'Android 9+', href: SITE.downloads.android }, - { icon: 'laptop', name: 'macOS', ver: 'macOS 12+' }, + { icon: 'laptop', name: 'macOS', ver: 'macOS 12+', href: SITE.downloads.macos }, { icon: 'monitor', name: 'Windows', ver: 'Win 10/11', href: SITE.downloads.windows }, { icon: 'terminal', name: 'Linux', ver: 'deb / rpm' }, ]; diff --git a/web/website/src/config/site.ts b/web/website/src/config/site.ts index eaa1eac..8990a28 100644 --- a/web/website/src/config/site.ts +++ b/web/website/src/config/site.ts @@ -27,10 +27,12 @@ export const SITE = { * 客户端安装包直链。控制面 pangolin-server 通过 Cloudflare Tunnel 对外暴露 * /downloads/(origin = 127.0.0.1:8080),文件由 * scripts/ci/deploy-client.sh 每次构建 scp 覆盖到 pangolin1:/var/lib/pangolin/downloads/, - * 每平台固定文件名、只保留最新一份。iOS / macOS / Linux 本轮未接入下载按钮。 + * 每平台固定文件名、只保留最新一份。macOS 自 client-v1.0.59 起接入; + * iOS 走 TestFlight(无直接下载文件)、Linux 本轮未接入下载按钮。 */ downloads: { android: 'https://api.yanmeiai.com/downloads/pangolin-android.apk', windows: 'https://api.yanmeiai.com/downloads/pangolin-windows-x64-setup.exe', + macos: 'https://api.yanmeiai.com/downloads/pangolin-macos-x64.zip', }, } as const;