Repository navigation
feat: Add Intel (x86_64) Mac support via universal binary builds #534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,13 +59,23 @@ done | |
| echo "Pre-flight checks passed" | ||
|
|
||
| # --- Build GhosttyKit (if needed) --- | ||
| # Always rebuild if the existing xcframework is missing the x86_64 slice, | ||
| # which happens when setup.sh seeds a native-only (arm64) build. | ||
| NEED_BUILD="false" | ||
| if [ ! -d "GhosttyKit.xcframework" ]; then | ||
| echo "Building GhosttyKit..." | ||
| cd ghostty && zig build -Demit-xcframework=true -Demit-macos-app=false -Dxcframework-target=native -Doptimize=ReleaseFast && cd .. | ||
| NEED_BUILD="true" | ||
| elif [ ! -d "GhosttyKit.xcframework/macos-arm64_x86_64" ]; then | ||
| echo "GhosttyKit.xcframework exists but is not universal, rebuilding..." | ||
| NEED_BUILD="true" | ||
| fi | ||
|
|
||
| if [ "$NEED_BUILD" = "true" ]; then | ||
| echo "Building universal GhosttyKit..." | ||
| cd ghostty && zig build -Demit-xcframework=true -Demit-macos-app=false -Dxcframework-target=universal -Doptimize=ReleaseFast && cd .. | ||
|
Comment on lines
65
to
+74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
With Useful? React with 👍 / 👎. |
||
| rm -rf GhosttyKit.xcframework | ||
| cp -R ghostty/macos/GhosttyKit.xcframework GhosttyKit.xcframework | ||
| else | ||
| echo "GhosttyKit.xcframework exists, skipping build" | ||
| echo "GhosttyKit.xcframework exists and is universal, skipping build" | ||
| fi | ||
|
|
||
| # --- Build app (Release, unsigned) --- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now requests a universal GhosttyKit build, but
build-sign-upload.shstill skips the build wheneverGhosttyKit.xcframeworkalready exists (the common case afterscripts/setup.sh, which builds/seeds a native-arch framework). With this commit also setting app Release builds toONLY_ACTIVE_ARCH=NO, local release builds will attempt x86_64 and fail to link against an existing arm64-only GhosttyKit slice. Please force a rebuild (or validate slices) in release packaging instead of reusing any preexisting xcframework directory.Useful? React with 👍 / 👎.