Walkthrough
The build validates packaged macOS app archives for server bundle self-containment when the target is macOS arm64 and the host is Darwin. Tests cover missing app bundles, missing
app.asarfiles, resolvable bundles, and unresolved server imports.Changes: macOS payload validation
Layer / File(s) Summary Discover and validate packaged apps
scripts/build-desktop-artifact.tsAdds MacPackagedAppMissingErrorandvalidateMacPackagedPayload. The validator searchesmac*output directories for.appbundles and checks eachContents/Resources/app.asarfor server bundle self-containment.Build integration and validation tests
scripts/build-desktop-artifact.ts,scripts/build-desktop-artifact.test.tsRuns validation for macOS arm64 builds on Darwin hosts. Tests cover missing app bundles, missing app.asarfiles, resolvable bundles, and unresolved server imports.Priority: External image Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- pingdotgg/t3code#25840: Reports a missing
zod/v4module in a packaged macOS backend. This change checks packaged archives for unresolved server imports but does not add the missing dependency.
Possibly related PRs
- pingdotgg/t3code#25841: Adds
zodas a direct server dependency and checks staged peer dependencies; this PR validates packaged macOS archives for self-containment.
Suggested reviewers:
t3dotgg,juliusmarminge- pingdotgg/t3code#25840: Reports a missing
Merge Risk: External image Moderate · up to cedb1
Some macOS artifacts can ship without detecting missing packaged runtime dependencies; remove the architecture restriction before merging.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title is concise, specific, and clearly describes the main change: enabling the packaged bundle self-check for macOS artifacts. Description check Passed The description includes the Problem, Change, and Verification sections. It explains the failure scenario, implementation scope, platform limitation, focused tests, build verification, and related iss… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Full details: Description check
Explanation
The description includes the Problem, Change, and Verification sections. It explains the failure scenario, implementation scope, platform limitation, focused tests, build verification, and related issues. The scope and approval rationale is not labeled as a separate section, but the description is otherwise complete and focused.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.