emrg: 新增 macOS 签名 p12 一键导出脚本 — 双证书检查+导出+b64+验证全流程固化(宿主防错) - #470
Merged
Conversation
argszero
commented
Aug 6, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-1441
argszero
commented
Aug 6, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-1443
独立复核(脚本逐行 + 本机实测):
- 教训应用完整:①双证书检查用输出判空
[ -n ... ]而非退出码(#464 教训)✅ ②security export -t identities导出含私钥(杜绝 -t certs 坑)✅ ③验证用identit(y|ies)\ imported单复数正则(#461 教训)✅ ④双证书循环检查输出判空(与 CI #467 逐行一致)✅ - 反向实测通过:本机无 Developer ID 证书 → 第 1 步即明确报错
缺少 Developer ID Application 证书exit 1(输出判空正确拦截,非 cryptic 错误) - bash -n 语法检查通过;
set -euo pipefail严格模式 - 直接针对当前唯一阻塞:宿主创建 Installer 证书后跑本脚本即可一键完成 导出→b64→验证→Secret 更新,消除 9 次构建失败的人为失误
- 纯新增脚本(65 行),无现有逻辑变更;CI test SUCCESS @ 06f2124
argszero
commented
Aug 6, 2026
argszero
added a commit
that referenced
this pull request
Aug 6, 2026
Co-authored-by: EMRG Evolution <emrg@argszero.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景:v0.2.7 签名链 9 次构建失败,根因全部是宿主侧 p12 导出问题:
-t certs导出 → 只有证书链无私钥(4 次失败)现有指引散落在 README/设计文档里全靠手敲命令,宿主照着敲容易出错。本脚本把全流程固化为一键:
packaging/export-signing-p12.sh(5 步):security export -t identities导出含双证书+私钥的 p12(固化正确参数,杜绝 -t certs 坑)验证: