Skip to content

Fix updater app copy preserving framework symlinks#3219

Open
constansino wants to merge 1 commit into
exelban:masterfrom
constansino:fix-updater-preserve-symlinks
Open

Fix updater app copy preserving framework symlinks#3219
constansino wants to merge 1 commit into
exelban:masterfrom
constansino:fix-updater-preserve-symlinks

Conversation

@constansino
Copy link
Copy Markdown

Fixes #3218.

Summary

  • replace the updater's cp -rf app copy with /usr/bin/ditto
  • share the app install step between both updater launch paths
  • preserve framework bundle symlinks from the mounted DMG so Gatekeeper keeps accepting the installed app

Verification

  • bash -n Kit/scripts/updater.sh
  • Ran Kit/scripts/updater.sh against a fake Stats.app containing framework-style symlinks and confirmed Test.framework/Test, Test.framework/Resources, and Test.framework/Versions/Current remain symlinks after install.
  • Reproduced the released v2.12.14 DMG behavior locally: cp -rf copy is rejected by spctl with bundle format is ambiguous, while a ditto copy is accepted as Notarized Developer ID.

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.

Updater can corrupt framework symlinks and make Stats.app fail Gatekeeper

1 participant