From 31f93adbb235fc667b3aadbd360cdba62e8cd3e1 Mon Sep 17 00:00:00 2001 From: lanrtop Date: Mon, 6 Jul 2026 21:21:57 +0900 Subject: [PATCH] =?UTF-8?q?chore(build):=20=E6=96=B0=E5=A2=9E=20build:loca?= =?UTF-8?q?l=20=E8=84=9A=E6=9C=AC=E2=80=94=E2=80=94=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=85=B3=E9=97=AD=20updater=20=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E4=BA=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本地构建用于装机自验,不需要签名产物;此前会因 TAURI_SIGNING_PRIVATE_KEY 缺失 exit 1(bundle 已产出但脚本层报错)。 签名私钥保持只存于 Gitea secrets(CI 单一发版通道,已验证 OSS latest.json v0.1.19 签名完整),本地不配 key——最小暴露面。 --- package.json | 3 ++- src-tauri/tauri.local.conf.json | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src-tauri/tauri.local.conf.json diff --git a/package.json b/package.json index 72ac75f..7f1ae79 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "typecheck": "tsc --noEmit", "test": "vitest run", "test:watch": "vitest", - "tauri": "tauri" + "tauri": "tauri", + "build:local": "tauri build --config src-tauri/tauri.local.conf.json" }, "dependencies": { "@tanstack/react-query": "^5.95.0", diff --git a/src-tauri/tauri.local.conf.json b/src-tauri/tauri.local.conf.json new file mode 100644 index 0000000..55a9946 --- /dev/null +++ b/src-tauri/tauri.local.conf.json @@ -0,0 +1,5 @@ +{ + "bundle": { + "createUpdaterArtifacts": false + } +}