Community编程与开发github.com

OpenClaw macOS 发布

运行或恢复 OpenClaw macOS 版本的签名、公证、appcast 更新及资产发布。

OpenClaw macOS 发布 是什么?

该技能用于管理 OpenClaw 项目 macOS 版本的完整发布流程。它能够自动处理代码签名、Apple Notary 公证、appcast 文件更新以及将构建产物(zip、dmg、dSYM)上传至 GitHub Release。该技能是稳定版发布流程的一部分,与 npm 发布并行执行,不会阻塞主流程。技能涵盖了凭据管理(通过 1Password 和 GitHub Secrets)、预检验证、失败恢复(从检查点恢复)以及发布后验证等关键步骤。它主要适用于 `openclaw/releases` 仓库的发布操作环境,并严格遵守组织设定的环境和审批策略。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/release-openclaw-mac

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OpenClaw Mac 发布

与 $release-openclaw-maintainer、$release-openclaw-ci、$one-password 以及 $release-private(若存在)配合使用,当涉及稳定版 macOS 资产、release-ops mac 预检、公证、appcast 推广或 macOS 版本恢复时。

这是常规的稳定版发布技能。请勿将其用于扩展稳定版;该版本的 GitHub Release 包含共享的验证证据,但不继承 macOS 资产或 appcast 推广。

发布授权

除非操作员明确限制范围,否则显式的稳定版或完整版发布请求包括 macOS 发布。继续完成验证、签名、公证、推广和验证,无需征求单独的 macOS 同意。保留确切的发布标识和所有产物的校验和。macOS 发布与 npm 并行运行,绝不会阻塞它;macOS 失败不会影响 npm/ClawHub 发布、GitHub Release 最终化或主流程收尾。并行修复它。

遵循当前所有者配置的环境策略。不要发明额外的审阅者要求或重新创建过时的要求。如果 GitHub 仍然强制执行批准,请报告实际规则并通过其所有者解决;策略变更需要明确的组织所有者指示和已验证的活跃管理员成员身份。永远不要冒充审阅者、伪造批准或使用其他签名路径绕过强制执行规则。

凭据

  • 从 $release-private 解析 Peter 拥有的 ASC 项目引用、密钥 ID、颁发者 ID 和服务令牌来源。
  • 字段:private_key_p8、key_id、issuer_id。
  • 过期/吊销密钥症状:xcrun notarytool submit 失败并返回 HTTP status code: 401. Unauthenticated。
  • 在设置 GitHub Secrets 之前,使用 xcrun notarytool history 验证候选 ASC 凭据。

1Password

  • 使用 $one-password:所有 op 操作都在一个持久的 tmux 会话中完成,无秘密输出。
  • 可用时使用 $release-private 中的服务令牌指南。
  • 如果服务令牌失败,仅运行状态检查:存在令牌/长度和 op whoami;切勿打印令牌值。
  • 如果需要桌面应用认证但 Touch ID 不可用,为手动 op account add --signin 路径设置 OP_BIOMETRIC_UNLOCK_ENABLED=false。

GitHub Secrets

目标 release-ops 仓库环境:openclaw/releases,环境 mac-release。

仅在本地公证认证验证成功后设置:

  • APP_STORE_CONNECT_API_KEY_P8
  • APP_STORE_CONNECT_KEY_ID
  • APP_STORE_CONNECT_ISSUER_ID

不要从混合来源更新这些。所有三个 ASC 字段必须来自同一个 1Password 项目。

工作流形状

  • openclaw/openclaw 是公开产品仓库。它的 GitHub Releases 页面是 macOS 资产最终附加的地方。
  • openclaw/openclaw 的 macos-release.yml 仅是公开交接验证。无论 preflight_only 如何,它绝不签名、公证或上传 macOS 资产。
  • openclaw/releases 是受限制的 release-ops 仓库。其 macOS 工作流对 openclaw/openclaw GitHub Release 上的资产进行签名、公证、验证和推广。
  • 公开发布分支可能在稳定标签/npm 已经上线后携带仅限 Mac 的打包修复。
  • 在构建该分支变体时,使用 source_ref=release/YYYY.M.PATCH 进行 release-ops mac 预检/验证。
  • 保持 tag=vYYYY.M.PATCH 指向原始的稳定发布提交。
  • 真实的 Mac 发布必须重用:
    • 针对相同 tag/source SHA 的成功 release-ops mac 预检运行
    • 针对相同 tag/source SHA 的成功 release-ops mac 验证运行
  • Release-ops 预检和真实发布使用 mac-release 环境进行签名和推广密钥,及其仅 main 分支的部署策略。授权的发布操作员在该环境的当前规则下继续操作。
  • 如果预检源 SHA 与标签 SHA 不同,验证也必须使用相同的 source_ref;推广会拒绝不匹配的证据。

公证

  • OpenClaw 使用 scripts/notarize-mac-artifact.sh。
  • xcrun notarytool submit 应使用 --no-s3-acceleration;加速上传可能产生误导性的 401 错误,即使 notarytool history 成功。
  • 如果签名成功但公证立即因 401 失败,请首先检查 ASC 密钥的新鲜度。
  • 如果密钥文件写入后,公证状态持续几分钟处于进行中,这是正常的 Apple 等待时间;不要盲目编辑。

调度

公开交接工作流在发布前验证标签、源、构建和包元数据。它不需要 GitHub Release 页面,因为它不上传资产。保持此验证位于真实发布工作流之前。核心发布者拥有 GitHub Release 最终化权;macOS 推广会将其经过验证的资产附加到该发布(无论其是草稿还是已公开),因此它永远不会等待 npm 切换。

公开交接验证:

gh workflow run macos-release.yml --repo openclaw/openclaw \
  --ref release/YYYY.M.PATCH \
  -f tag=vYYYY.M.PATCH \
  -f preflight_only=true \
  -f public_release_branch=release/YYYY.M.PATCH
  • 使用公开发布分支作为工作流引用,以便 Actions 列表显示 release/YYYY.M.PATCH,与先前的稳定版 macOS 交接运行相匹配。
  • 不要为此公开交接验证使用 --ref main 或 --ref vYYYY.M.PATCH。工作流内部从 tag 输入检出的标签。

Release-ops 预检:

gh workflow run openclaw-macos-publish.yml --repo openclaw/releases --ref main \
  -f tag=vYYYY.M.PATCH \
  -f source_ref=release/YYYY.M.PATCH \
  -f preflight_only=true \
  -f smoke_test_only=false \
  -f allow_late_calver_recovery=false \
  -f public_release_branch=release/YYYY.M.PATCH

在配置的环境策略下跟踪签名和公证的运行。记录成功的预检运行 ID;批准暂停不是成功的预检。

恢复是默认行为。在失败(公证中断、DMG 打包、收集器)后重新触发相同的预检命令,会从失败或取消的 main 调度(针对相同标签和源 SHA)所留下的最新检查点恢复每个变体;只有没有检查点的变体才会重新构建。运行日志会打印 Resuming <variant> from run <id> attempt <n> 或 Building <variant>。ignore_checkpoints=true 强制全新构建。仅当需要定位一个特定运行,或针对恢复索引存在之前创建的检查点(macos-resume-<tag>-<variant>-<sha> 产物)时,才传递 resume_notarization_run_id、resume_notarization_run_attempt 和 resume_notarization_variant。当失败作业仍在当前运行中时,首选 gh run rerun <run-id> --failed --repo openclaw/releases。

分支变体预检的 Release-ops 验证:

gh workflow run openclaw-macos-validate.yml --repo openclaw/releases --ref main \
  -f tag=vYYYY.M.PATCH \
  -f source_ref=release/YYYY.M.PATCH

记录成功的验证运行 ID。

真实发布:

gh workflow run openclaw-macos-publish.yml --repo openclaw/releases --ref main \
  -f tag=vYYYY.M.PATCH \
  -f preflight_only=false \
  -f smoke_test_only=false \
  -f preflight_run_id=<successful-preflight-run> \
  -f validate_run_id=<successful-validation-run> \
  -f allow_late_calver_recovery=false \
  -f public_release_branch=release/YYYY.M.PATCH

在相同的发布授权和当前环境策略下,跟踪资产上传和 appcast 发布的推广过程。

  • Release-ops openclaw/releases 的发布/验证工作流从其自身受信任的 main 工作流引用运行。真实发布有一个防护,拒绝任何其他工作流引用。显示 main 引用是预期的;公开的 OpenClaw 源通过 tag 和可选的 source_ref 选择。

验证

  • gh release view vYYYY.M.PATCH --repo openclaw/openclaw 显示 zip、dmg、dSYM zip;一旦 npm 发布者将其切换:不是草稿,不是预发布。
  • 公开的 main 分支上的 appcast.xml 指向 OpenClaw-YYYY.M.PATCH.zip。
  • Appcast 条目包含 sparkle:version、sparkle:shortVersionString、长度和 sparkle:edSignature。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能