Community translations by veiseule.ai — Help improve them on Crowdin
Skip to main content

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 notarytool kung 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_ID
    • echo "$APP_STORE_CONNECT_API_KEY_P8" | sed 's/\\n/\n/g' > /tmp/openclaw-notary.p8
    • xcrun 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 pnpm deps (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_BUILD ay nagma-map sa CFBundleVersion/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 ang BUILD_ARCHS="arm64 x86_64" (o BUILD_ARCHS=all).
  • Gamitin ang scripts/package-mac-dist.sh para sa release artifacts (zip + DMG + notarization). Gamitin ang scripts/package-mac-app.sh para 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 (and OpenClaw-2026.2.9.dSYM.zip) to the GitHub release for tag v2026.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.