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(release): restore Windows signing build

github-actions[bot]8e47296e028d
diff --git a/scripts/release.test.mjs b/scripts/release.test.mjs
index dfc982d138..9b4a351c77 100644
--- a/scripts/release.test.mjs
+++ b/scripts/release.test.mjs
@@ -1,13 +1,14 @@
import assert from "node:assert/strict";
-import { chmodSync, mkdtempSync, readFileSync, writeFileSync } from "node:fs";
+import { chmodSync, existsSync, mkdtempSync, readFileSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
-import { join } from "node:path";
+import { join, resolve } from "node:path";
import { spawnSync } from "node:child_process";
import test from "node:test";
const repoRoot = new URL("..", import.meta.url).pathname;
const releaseScript = join(repoRoot, "scripts/release.mjs");
const packagesWorkflow = join(repoRoot, ".github/workflows/mcp-release.yml");
+const vsignConfigPath = join(repoRoot, "src-tauri/tauri.vsign.conf.json");
function runRelease(args, env = {}) {
return spawnSync(process.execPath, [releaseScript, ...args], {
@@ -111,3 +112,14 @@ test("launcher packages bypass filtered publishing for provenance", () => {
assert.match(workflow, /pnpm publish "\.\/packages\/mcp-server" --access public --provenance --no-git-checks/);
assert.doesNotMatch(workflow, /pnpm --filter "@dbx-app\/(?:cli|mcp-server)" publish/);
});
+
+test("Tauri VSign script resolves from the src-tauri working directory", () => {
+ const config = JSON.parse(readFileSync(vsignConfigPath, "utf8"));
+ const args = config.bundle.windows.signCommand.args;
+ const fileArgumentIndex = args.indexOf("-File");
+
+ assert.notEqual(fileArgumentIndex, -1);
+ const scriptPath = args[fileArgumentIndex + 1];
+ assert.equal(typeof scriptPath, "string");
+ assert.equal(existsSync(resolve(repoRoot, "src-tauri", scriptPath)), true);
+});
diff --git a/src-tauri/tauri.vsign.conf.json b/src-tauri/tauri.vsign.conf.json
index 77cac71682..847fe34451 100644
--- a/src-tauri/tauri.vsign.conf.json
+++ b/src-tauri/tauri.vsign.conf.json
@@ -10,7 +10,7 @@
"-ExecutionPolicy",
"Bypass",
"-File",
- ".github/scripts/vsign-sign.ps1",
+ "../.github/scripts/vsign-sign.ps1",
"%1"
]
}