Skip to content

Commit aaf9f1d

Browse files
committed
fix(osx): set BUNDLE_CAN_DOWNGRADE
Enables atomic replacement of the outer @APPLICATION_NAME@.app payload during install/upgrade instead of PackageKit's default file by file diff. Without this, installing a rebranded client over an existing install like a legacy client receipt being upgraded via APPLICATION_REV_DOMAIN_INSTALLER can leave stale files from the previous bundle mixed with the new payload, producing an invalid code signature ("a sealed resource is missing or invalid") that fails Gatekeeper/launchd validation on next boot. Signed-off-by: Camila Ayres <camila.ayres@nextcloud.com>
1 parent 3469dca commit aaf9f1d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

admin/osx/macosx.pkgproj.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<key>CHILDREN</key>
1818
<array>
1919
<dict>
20+
<key>BUNDLE_CAN_DOWNGRADE</key>
21+
<true/>
2022
<key>CHILDREN</key>
2123
<array/>
2224
<key>GID</key>

0 commit comments

Comments
 (0)