Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(docs): keep installer links valid across releases

t8y2f30d0cb680a1
diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml
index 8fbc81677a..5f9d765224 100644
--- a/.github/workflows/publish-packages.yml
+++ b/.github/workflows/publish-packages.yml
@@ -452,6 +452,7 @@ jobs:
PYEOF
- name: Send to QQ group
+ continue-on-error: true
env:
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
HOST: ${{ secrets.DEPLOY_HOST }}
diff --git a/docs/lib/downloadLinks.test.ts b/docs/lib/downloadLinks.test.ts
index 0925ebf626..1f0204339f 100644
--- a/docs/lib/downloadLinks.test.ts
+++ b/docs/lib/downloadLinks.test.ts
@@ -14,22 +14,30 @@ test("Windows downloads include standard, offline, and Windows 7 installers", ()
label: "Windows 10/11 (x64)",
description: "标准在线安装包",
badge: "推荐",
- href: "https://dl.dbxio.com/releases/latest/DBX_0.5.82_x64-setup.exe?v=0.5.82",
+ href: "https://dl.dbxio.com/releases/v0.5.82/DBX_0.5.82_x64-setup.exe?v=0.5.82",
},
{
id: "windows-offline",
label: "Windows 完整离线安装包",
description: "内置 WebView2 · 适用于内网部署或运行库缺失",
badge: "离线",
- href: "https://dl.dbxio.com/releases/latest/DBX_0.5.82_x64-webview2-offline-setup.exe?v=0.5.82",
+ href: "https://dl.dbxio.com/releases/v0.5.82/DBX_0.5.82_x64-webview2-offline-setup.exe?v=0.5.82",
},
{
id: "windows-7-offline",
label: "Windows 7 离线安装包",
description: "内置 WebView2 109 · 仅支持 x64",
badge: "旧系统",
- href: "https://dl.dbxio.com/releases/latest/DBX_0.5.82_x64-win7-webview2-109-offline-setup.exe?v=0.5.82",
+ href: "https://dl.dbxio.com/releases/v0.5.82/DBX_0.5.82_x64-win7-webview2-109-offline-setup.exe?v=0.5.82",
},
],
);
});
+
+test("all downloads use immutable versioned release paths", () => {
+ const options = createInstallOptions("en", "0.5.82");
+
+ assert.equal(options.length, 7);
+ assert.ok(options.every((option) => option.href.startsWith("https://dl.dbxio.com/releases/v0.5.82/DBX_0.5.82_")));
+ assert.ok(options.every((option) => !option.href.includes("/releases/latest/")));
+});
diff --git a/docs/lib/downloadLinks.ts b/docs/lib/downloadLinks.ts
index 03bc609190..afd8f57c19 100644
--- a/docs/lib/downloadLinks.ts
+++ b/docs/lib/downloadLinks.ts
@@ -18,7 +18,7 @@ type DownloadArtifact = {
suffix: string;
};
-const DOWNLOAD_BASE_URL = "https://dl.dbxio.com/releases/latest";
+const DOWNLOAD_BASE_URL = "https://dl.dbxio.com/releases";
const downloadArtifacts: DownloadArtifact[] = [
{
@@ -78,6 +78,6 @@ export function createInstallOptions(lang: InstallLang, version: string): Instal
label: artifact.labels[lang],
description: artifact.descriptions?.[lang],
badge: artifact.badges?.[lang],
- href: `${DOWNLOAD_BASE_URL}/DBX_${version}_${artifact.suffix}?v=${version}`,
+ href: `${DOWNLOAD_BASE_URL}/v${version}/DBX_${version}_${artifact.suffix}?v=${version}`,
}));
}