Build universal binary in stable release workflow

Merged
AU
8mo ago
+29-9

Summary

  • Updates the stable release workflow to build universal (arm64 + x86_64) binaries, matching the nightly workflow
  • Adds -destination 'generic/platform=macOS', ARCHS="arm64 x86_64", and ONLY_ACTIVE_ARCH=NO to the xcodebuild command
  • Adds a post-build architecture verification step that checks the app binary, CLI binary, and Ghostty helper are all universal
  • Updates all derived data paths from build/ to build-universal/ for consistency

Test plan

  • Trigger a test run of the release workflow via workflow_dispatch on a test tag
  • Verify the "Verify binary architectures" step passes (confirms arm64 + x86_64 in all binaries)
  • Verify codesigning and notarization succeed with the universal binary

🤖 Generated with Claude Code


Summary by cubic

Update the stable release workflow to build a universal macOS app (arm64 + x86_64), matching nightly builds, and verify architectures before signing and notarization.

  • New Features
    • Build universal binaries via xcodebuild with -destination 'generic/platform=macOS', ARCHS="arm64 x86_64", and ONLY_ACTIVE_ARCH=NO.
    • Add post-build checks using lipo -archs for the app binary, CLI, and Ghostty helper.
    • Switch derived data paths from build/ to build-universal/ and update downstream steps (Sparkle plist, CLI test, helper check, codesign/notarize, sentry-cli upload).

Summary by CodeRabbit

  • Chores
    • Updated release build process to generate universal binaries supporting both Apple Silicon and Intel architectures.
    • Added verification step to ensure released binaries contain both required architecture variants.