日期:2026-07-07
项目:Mindraw
任务:MD-EDC-02 / P-20260707-signed-notarized-dmg
角色:Coder@mindraw
PMO 续派 MD-EDC-02,要求在 Owner 恢复本机 notary credential profile 后,从固定 worktree /private/tmp/mindraw-md-edc-02-signed-notarized-20260707、固定 source commit 583d507f679866f670b4fec82f1e631d4a9dbf54 继续生成 1.2.4 / Build202607071930 macOS Apple Silicon Developer ID signed / notarized / stapled DMG,并补齐 artifact 自查证据。
codex/md-edc-02-signed-notarized,HEAD 为 583d507f679866f670b4fec82f1e631d4a9dbf54,工作区无新增 source/config/script 改动。/tmp/mindraw-notary-profile.env 作为本机 shell 内 profile 来源,仅做静默验证,未输出或写入 profile alias、Apple ID、password、API key、私钥、.p12 或 Keychain secret。xcrun notarytool history --keychain-profile "$PROFILE" 可用;Developer ID Application identity 可见。CARGO_TARGET_DIR=/tmp/mindraw-md-edc-02-package-target-202607071930 运行 npm run package:mindraw;前端 build、Rust release 编译和 Tauri App bundle 生成已推进到 App signing 阶段。codesign --force --deep --sign ... --timestamp --options runtime 长时间无进展,疑似等待 Keychain 私钥授权或 timestamp 签名访问;中断后 package 退出码为 130。02-P/MEXP15-SignedNotarizedDMG/qa/md-edc-02-signed-notarized-dmg-check-20260707.md02-P/MEXP15-SignedNotarizedDMG/qa/md-edc-02-signed-notarized-dmg-check-20260707.json02-P/MEXP15-SignedNotarizedDMG/review/md-edc-02-review-request-crg-583d507f679.md02-P/plan-progress.markdowncrg-583d507f679 仍只表示 source diff / blocker 记录已通过复核,不覆盖 artifact。/private/tmp/mindraw-md-edc-02-signed-notarized-20260707 为唯一 source worktree。spctl、codesign --verify、hdiutil verify 或 release tag。MD-EDC-02 artifact 状态。583d507f679866f670b4fec82f1e631d4a9dbf54/private/tmp/mindraw-md-edc-02-signed-notarized-2026070702-P/MEXP15-SignedNotarizedDMG/qa/md-edc-02-signed-notarized-dmg-check-20260707.md / .json02-P/MEXP15-SignedNotarizedDMG/review/md-edc-02-review-request-crg-583d507f679.md02-P/plan-progress.markdowncodesign --timestamp --options runtime,疑似等待 Keychain 私钥授权或 timestamp 签名访问。notarytool history 静默通过;Developer ID Application identity 可见;npm run package:mindraw 推进到 Tauri App signing 阶段后长时间无进展并被中断,退出码 130;03-O/C2.builds/releases/Build202607071930/ 不存在。用途:在 PMO / Owner 处理 Developer ID 私钥授权后,从同一固定 source commit 恢复 MD-EDC-02 packaging。命令不得使用 set -x,不得打印 profile alias 或任何凭据。
前置条件:
/private/tmp/mindraw-md-edc-02-signed-notarized-20260707。git rev-parse HEAD 必须为 583d507f679866f670b4fec82f1e631d4a9dbf54。/tmp/mindraw-notary-profile.env 存在,且仅在 shell 内 source。设置 / 执行命令:
cd /private/tmp/mindraw-md-edc-02-signed-notarized-20260707
git status --short --branch
git rev-parse HEAD
set -euo pipefail
set +x
source /tmp/mindraw-notary-profile.env
PROFILE="${MINDRAW_NOTARY_PROFILE:-${NOTARY_PROFILE:-${NOTARYTOOL_KEYCHAIN_PROFILE:-}}}"
test -n "$PROFILE"
IDENTITY="$(security find-identity -v -p codesigning | awk '/Developer ID Application/ {print $2; found=1; exit} END {if (!found) exit 1}')"
BUILD_ID=202607071930 \
MINDRAW_BUILD_AGENT=coder@mindraw \
MINDRAW_RELEASE_CLASS=mexp15-signed-notarized-dmg \
MINDRAW_SIGNING_IDENTITY="$IDENTITY" \
MINDRAW_NOTARY_PROFILE="$PROFILE" \
CARGO_TARGET_DIR=/tmp/mindraw-md-edc-02-package-target-202607071930 \
npm run package:mindraw
验证步骤:
test -d /Users/ar/Projects/Mindraw/03-O/C2.builds/releases/Build202607071930
find /Users/ar/Projects/Mindraw/03-O/C2.builds/releases/Build202607071930 -maxdepth 1 -type f -print
shasum -a 256 /Users/ar/Projects/Mindraw/03-O/C2.builds/releases/Build202607071930/*.dmg
hdiutil verify /Users/ar/Projects/Mindraw/03-O/C2.builds/releases/Build202607071930/*.dmg
清理 / 恢复:
/tmp/mindraw-notary-profile.env 内容写入任何日志、聊天或仓库文件。搜索关键词:MD-EDC-02、CODESIGN_PRIVATE_KEY_AUTHORIZATION_WAIT、Build202607071930、crg-583d507f679、mexp15-signed-notarized-dmg、codesign --timestamp --options runtime
spctl App/DMG assessment、codesign --verify --deep --strict、hdiutil verify、mounted App metadata。crg-583d507f679 不能自动代表 artifact 通过;仍需进入后续 artifact 复核和安装路径验证。codesign,优先记录 codesign 具体 stderr / GUI 授权状态,但继续避免输出任何 secret。