From 406db8d79ea318949f5e0971cdd629026111eaa3 Mon Sep 17 00:00:00 2001 From: argszero Date: Thu, 6 Aug 2026 13:45:22 +0800 Subject: [PATCH] =?UTF-8?q?emrg:=20=E4=BF=AE=E5=A4=8D=20macOS=20.app=20?= =?UTF-8?q?=E6=89=93=E5=8C=85=20=E2=80=94=20=E7=A6=81=E7=94=A8=20electron-?= =?UTF-8?q?builder=20=E8=87=AA=E5=8A=A8=E5=85=AC=E8=AF=81=20+=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20extraResources=20=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实测 31074745162(#462 merge 后)Build GUI 失败: 1. ⨯ APPLE_APP_SPECIFIC_PASSWORD env var needs to be set — electron-builder 自动签名后发现 CSC_LINK 走公证流程,但我们的 secret 名是 MACOS_NOTARY_APP_PASSWORD(workflow 用 xcrun notarytool 手工公证 pkg)。 → mac.notarize: false 禁用自动公证,统一走 Notarize pkg 步骤 2. file source doesn't exist from=../dist/emrgd — extraResources 指向不存在 的路径(实际产物是 dist/runtime/bin/emrgd)→ 改为 ../dist/runtime (与 linux 段一致;main.js 用 process.resourcesPath/runtime 读取) 验证:GUI 单测 45(37 pass + 8 skip)✅ / pytest 473 ✅ / actionlint ✅ --- emrg/gui/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emrg/gui/package.json b/emrg/gui/package.json index 24016ece..7e5c4e63 100644 --- a/emrg/gui/package.json +++ b/emrg/gui/package.json @@ -26,8 +26,8 @@ "productName": "EMRG", "extraResources": [ { - "from": "../dist/emrgd", - "to": "emrgd" + "from": "../dist/runtime", + "to": "runtime" } ], "files": [ @@ -41,6 +41,7 @@ "icon": "../packaging/assets/", "mac": { "hardenedRuntime": true, + "notarize": false, "target": [ { "target": "dir",