fix(release): staple again on a wait when Apple's ticket lookup drops
Merged
CH
8d ago+67+67+01234567890123456789-2-2-0123456789
The v0.18.0 tag run (39200295237) failed twice at the same step: xcrun stapler staple on the DMG, seconds after Apple accepted its notarization, with NSURLErrorDomain -1005 "The network connection was lost" from api.apple-cloudkit.com/ā¦/ticket-delivery and Error 68. The app's own staple worked both times; the rehearsals' DMG staples worked too, so this is the ticket service, not the artifact.
Both staples now go through stapleWithRetry (release-config.mjs): up to 6 tries, 30 s apart, then Apple's own error. release-config.test.mjs covers a staple that succeeds on a later try and one that never does.
Evidence
pnpm exec vitest run apps/desktop/scripts: 5 passedpnpm check:affected: exit 0 (a first run timed outstation.test.tsat 5.06 s under load; it passes alone and on the rerun)
š¤ Generated with Claude Code