fix(website): 下载链接按 GitHub CI 实际资产名改回点号命名(Kimi.Switch_…),并修正 release 模板 dmg 文件名提示

This commit is contained in:
KimiSwitch Dev committed 2026-08-07 16:07:32 +08:00
1 parent a0e36e928d
commit 93c5720769
2 files changed
+8 -8

No files matched your search

+7 -7
View File
@@ -14,21 +14,21 @@ const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releas
const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;
/** Per-platform download assets for the current release (names match the CI
* release workflow. NOTE: tauri-bundler keeps the productName verbatim, so the
* real asset is "Kimi Switch_0.7.3_…" (space), URL-encoded as %20. */
* release workflow exactly — verified against the published v0.7.3 assets:
* tauri-bundler on CI produces `Kimi.Switch_…` (dots) on every platform). */
const assets: Record<string, { label: string; href: string }[]> = {
windows: [
{ label: "MSI", href: dl("Kimi%20Switch_0.7.3_x64_en-US.msi") },
{ label: "MSI", href: dl("Kimi.Switch_0.7.3_x64_en-US.msi") },
{ label: "镜像", href: MIRROR_RELEASES },
],
macos: [
{ label: "Apple Silicon (.dmg)", href: dl("Kimi%20Switch_0.7.3_aarch64.dmg") },
{ label: "Apple Silicon (.dmg)", href: dl("Kimi.Switch_0.7.3_aarch64.dmg") },
{ label: "安装脚本", href: dl("install-macos.sh") },
],
linux: [
{ label: ".deb", href: dl("Kimi%20Switch_0.7.3_amd64.deb") },
{ label: ".AppImage", href: dl("Kimi%20Switch_0.7.3_amd64.AppImage") },
{ label: ".rpm", href: dl("Kimi%20Switch-0.7.3-1.x86_64.rpm") },
{ label: ".deb", href: dl("Kimi.Switch_0.7.3_amd64.deb") },
{ label: ".AppImage", href: dl("Kimi.Switch_0.7.3_amd64.AppImage") },
{ label: ".rpm", href: dl("Kimi.Switch-0.7.3-1.x86_64.rpm") },
],
};