From c0344abf45e3c8d9edf02559883b5f19787c58a2 Mon Sep 17 00:00:00 2001 From: EMRG Evolution Date: Thu, 6 Aug 2026 14:54:29 +0800 Subject: [PATCH] =?UTF-8?q?emrg:=20docs=20=E2=80=94=20README=20=E8=A1=A5?= =?UTF-8?q?=20p12=20=E4=B8=80=E9=94=AE=E5=AF=BC=E5=87=BA=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=8C=87=E5=BC=95=EF=BC=88#470=20=E5=85=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E6=9D=9C=E7=BB=9D=E6=89=8B=E6=95=B2=E5=91=BD=E4=BB=A4=E5=87=BA?= =?UTF-8?q?=E9=94=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 8aa9c496..62df6b7c 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -43,7 +43,15 @@ security find-identity -v # 列出全部(含 Developer ID Ins 5. **勾选"包含私钥"**(Export 对话框底部) 6. 设置导出密码 → 得到含私钥的 .p12 -**命令行导出方法**(推荐,精确防错——`-t identities` 保证含私钥;错误做法 `-t certs` 只导出证书链,即 v0.2.7 四次失败根因): +**⭐ 一键导出脚本(推荐,v0.2.7 九次失败教训固化,杜绝手敲命令出错)**: +```bash +# 前置:双证书(Application + Installer)都已导入本机钥匙串 +bash packaging/export-signing-p12.sh +# 脚本自动完成:检查双证书 → 导出 p12(-t identities)→ 生成 b64 → 导入验证(与 CI 一致) +# 输出含更新 Secret 的指引(MACOS_SIGNING_P12_BASE64 / MACOS_SIGNING_P12_PASSWORD) +``` + +**命令行导出方法**(精确防错——`-t identities` 保证含私钥;错误做法 `-t certs` 只导出证书链,即 v0.2.7 四次失败根因): ```bash # 用证书 CN 查询准确名称(本机已有有效 identity,无需重新申请证书) security find-identity -v -p codesigning