Paglabas ng OpenClaw macOS (Sparkle)¶
Ang app na ito ay may kasamang Sparkle auto-updates. Ang mga release build ay dapat naka-Developer ID–signed, naka-zip, at nailathala na may signed na appcast entry.
Mga paunang kinakailangan¶
- Naka-install ang Developer ID Application cert (halimbawa:
Developer ID Application: <Developer Name> (<TEAMID>)). - Ang path ng Sparkle private key ay nakatakda sa environment bilang
SPARKLE_PRIVATE_KEY_FILE(path papunta sa iyong Sparkle ed25519 private key; ang public key ay naka-embed sa Info.plist). Kung ito ay nawawala, tingnan ang~/.profile. - Notary credentials (keychain profile o API key) para sa
xcrun notarytoolkung gusto mo ng Gatekeeper-safe na DMG/zip distribution. - Gumagamit kami ng Keychain profile na pinangalanang
openclaw-notary, na ginawa mula sa App Store Connect API key env vars sa iyong shell profile:APP_STORE_CONNECT_API_KEY_P8,APP_STORE_CONNECT_KEY_ID,APP_STORE_CONNECT_ISSUER_IDecho "$APP_STORE_CONNECT_API_KEY_P8" | sed 's/\\n/\n/g' > /tmp/openclaw-notary.p8xcrun notarytool store-credentials "openclaw-notary" --key /tmp/openclaw-notary.p8 --key-id "$APP_STORE_CONNECT_KEY_ID" --issuer "$APP_STORE_CONNECT_ISSUER_ID"
- Naka-install ang
pnpmdeps (pnpm install --config.node-linker=hoisted). - Awtomatikong kinukuha ang Sparkle tools via SwiftPM sa
apps/macos/.build/artifacts/sparkle/Sparkle/bin/(sign_update,generate_appcast, atbp.).
I-build at i-package¶
Mga tala:
- Ang
APP_BUILDay nagma-map saCFBundleVersion/sparkle:version; panatilihin itong numeric + monotonic (walang-beta), kung hindi ay iko-compare ito ng Sparkle bilang equal. - Naka-default sa kasalukuyang architecture (
$(uname -m)). Para sa release/universal builds, itakda angBUILD_ARCHS="arm64 x86_64"(oBUILD_ARCHS=all). - Gamitin ang
scripts/package-mac-dist.shpara sa release artifacts (zip + DMG + notarization). Gamitin angscripts/package-mac-app.shpara sa lokal/dev na packaging.
# From repo root; set release IDs so Sparkle feed is enabled.
# APP_BUILD must be numeric + monotonic for Sparkle compare.
BUNDLE_ID=bot.molt.mac \
APP_VERSION=2026.2.9 \
APP_BUILD="$(git rev-list --count HEAD)" \
BUILD_CONFIG=release \
SIGN_IDENTITY="Developer ID Application: <Developer Name> (<TEAMID>)" \
scripts/package-mac-app.sh
# Zip for distribution (includes resource forks for Sparkle delta support)
ditto -c -k --sequesterRsrc --keepParent dist/OpenClaw.app dist/OpenClaw-2026.2.9.zip
# Optional: also build a styled DMG for humans (drag to /Applications)
scripts/create-dmg.sh dist/OpenClaw.app dist/OpenClaw-2026.2.9.dmg
# Recommended: build + notarize/staple zip + DMG
# First, create a keychain profile once:
# xcrun notarytool store-credentials "openclaw-notary" \
# --apple-id "<apple-id>" --team-id "<team-id>" --password "<app-specific-password>"
NOTARIZE=1 NOTARYTOOL_PROFILE=openclaw-notary \
BUNDLE_ID=bot.molt.mac \
APP_VERSION=2026.2.9 \
APP_BUILD="$(git rev-list --count HEAD)" \
BUILD_CONFIG=release \
SIGN_IDENTITY="Developer ID Application: <Developer Name> (<TEAMID>)" \
scripts/package-mac-dist.sh
# Optional: ship dSYM alongside the release
ditto -c -k --keepParent apps/macos/.build/release/OpenClaw.app.dSYM dist/OpenClaw-2026.2.9.dSYM.zip
Appcast entry¶
Gamitin ang release note generator para mag-render ang Sparkle ng formatted HTML notes:
SPARKLE_PRIVATE_KEY_FILE=/path/to/ed25519-private-key scripts/make_appcast.sh dist/OpenClaw-2026.2.9.zip https://raw.githubusercontent.com/openclaw/openclaw/main/appcast.xml
Gumagawa ng HTML release notes mula sa CHANGELOG.md (sa pamamagitan ng scripts/changelog-to-html.sh) at ini-embed ang mga ito sa appcast entry.
Commit the updated appcast.xml alongside the release assets (zip + dSYM) when publishing.
I-publish at i-verify¶
- Upload
OpenClaw-2026.2.9.zip(andOpenClaw-2026.2.9.dSYM.zip) to the GitHub release for tagv2026.2.9. - Siguraduhing tugma ang raw appcast URL sa baked feed:
https://raw.githubusercontent.com/openclaw/openclaw/main/appcast.xml. - Mga sanity check:
- Nagbabalik ng 200 ang
curl -I https://raw.githubusercontent.com/openclaw/openclaw/main/appcast.xml. - Nagbabalik ng 200 ang
curl -I <enclosure url>pagkatapos ng pag-upload ng mga asset. - Sa isang naunang public build, patakbuhin ang “Check for Updates…” mula sa About tab at tiyaking maayos na ini-install ng Sparkle ang bagong build.
Kahulugan ng tapos: nai-publish ang signed app + appcast, gumagana ang update flow mula sa mas lumang naka-install na bersyon, at naka-attach ang mga release asset sa GitHub release.