Skip to content

Stage official macOS updates before replacing the app - #283

Draft
PastFly wants to merge 2 commits into
mainfrom
codex/official-update-stage-before-replacement
Draft

PastFly wants to merge 2 commits into
mainfrom
codex/official-update-stage-before-replacement

Conversation

@PastFly

@PastFly PastFly commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Copy the official candidate into a private directory on the installation volume, then verify its publisher before moving the currently installed app.
  • Promote the verified copy by renaming it. Keep the known-good backup if promotion and restoration both fail or a different bundle appears at the destination during handoff.
  • Leave the current app in place if it was reopened or replaced while the candidate was being staged.
  • Exercise the real filesystem transaction against disposable bundles with test doubles for external commands.

Verification

  • 56 focused Swift tests passed, including copy failure, publisher refusal, successful replacement, immediate open failure, failed promotion and restoration, destination replacement during handoff, and reopening the old app during staging.
  • 21 mocked official security and notarization tests passed.
  • A broader local backup test reported vaultLockUnavailable. The same failure reproduced on exact current main 794781fff16e945e63f8af8d11ead3fd77be5429 in the same environment.

The draft covers the copy, verification, and replacement boundary. Candidate startup readiness after Launch Services accepts the request and a real Developer ID-signed/notarized installation remain to be verified.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant