fix(website): 下载链接按 GitHub CI 实际资产名改回点号命名(Kimi.Switch_…),并修正 release 模板 dmg 文件名提示
This commit is contained in:
1 parent
a0e36e928d
commit
93c5720769
2 files changed
+8
-8
No files matched your search
@@ -95,7 +95,7 @@ jobs:
|
|||||||
|
|
||||||
### macOS 安装说明(无开发者账号签名,需一次手动绕过)
|
### macOS 安装说明(无开发者账号签名,需一次手动绕过)
|
||||||
|
|
||||||
1. 下载 `KimiSwitch_*.dmg`,双击挂载后把 `Kimi Switch.app` 拖入「应用程序」文件夹
|
1. 下载 `Kimi.Switch_*.dmg`,双击挂载后把 `Kimi Switch.app` 拖入「应用程序」文件夹
|
||||||
2. 下载本 Release 附带的 `install-macos.sh`,在终端运行:
|
2. 下载本 Release 附带的 `install-macos.sh`,在终端运行:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -14,21 +14,21 @@ const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releas
|
|||||||
const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;
|
const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;
|
||||||
|
|
||||||
/** Per-platform download assets for the current release (names match the CI
|
/** Per-platform download assets for the current release (names match the CI
|
||||||
* release workflow. NOTE: tauri-bundler keeps the productName verbatim, so the
|
* release workflow exactly — verified against the published v0.7.3 assets:
|
||||||
* real asset is "Kimi Switch_0.7.3_…" (space), URL-encoded as %20. */
|
* tauri-bundler on CI produces `Kimi.Switch_…` (dots) on every platform). */
|
||||||
const assets: Record<string, { label: string; href: string }[]> = {
|
const assets: Record<string, { label: string; href: string }[]> = {
|
||||||
windows: [
|
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 },
|
{ label: "镜像", href: MIRROR_RELEASES },
|
||||||
],
|
],
|
||||||
macos: [
|
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") },
|
{ label: "安装脚本", href: dl("install-macos.sh") },
|
||||||
],
|
],
|
||||||
linux: [
|
linux: [
|
||||||
{ label: ".deb", href: dl("Kimi%20Switch_0.7.3_amd64.deb") },
|
{ label: ".deb", href: dl("Kimi.Switch_0.7.3_amd64.deb") },
|
||||||
{ label: ".AppImage", href: dl("Kimi%20Switch_0.7.3_amd64.AppImage") },
|
{ label: ".AppImage", href: dl("Kimi.Switch_0.7.3_amd64.AppImage") },
|
||||||
{ label: ".rpm", href: dl("Kimi%20Switch-0.7.3-1.x86_64.rpm") },
|
{ label: ".rpm", href: dl("Kimi.Switch-0.7.3-1.x86_64.rpm") },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user