sparkle-project / Sparkle

A software update framework for macOS
https://sparkle-project.org
Other
7.37k stars 1.05k forks source link

Adopt new app activation APIs in macOS Sonoma #2409

Closed zorgiepoo closed 1 year ago

zorgiepoo commented 1 year ago

Fixes #2398

Also fixes some logic for notifying the updater delegate when the app is about to install as before there may have been a race in the app being quit before the notification was fired (although maybe this was rare).

Misc Checklist

Only bug fixes to regressions or security fixes are being backported to the 1.x (master) branch now. If you believe your change is significant enough to backport, please also create a separate pull request against the master branch.

Testing

I tested and verified my change by using one or multiple of these methods:

Tested a background test app using Sparkle which on macOS 14 correctly

Tested a "slow update" (on a USB mount) which shows update progress window to front after app has been terminated. Tested nothing breaks in macOS 13 as well.

Tested update installation delegate is still fired and not fired multiple times, both from regular app and from sparkle-cli, both when app is still running and already terminated.

macOS version tested: 14.0 Beta (23A5301g) 13.5 (22G74)