Hello,
I am using Sparkle to update my app.
I use checkForUpdatesInBackground method and set both automaticallyChecksForUpdates and automaticallyDownloadsUpdates to true.
I found then Sparkle will download the update .zip file into a temporary cache folder which is the right behavior according to this post #1047
So I assume I have to terminate my app myself.
From this post #839 I realize I can send a siganl to close my app.
But the question is when to terminate the old app?
How can I make sure that the Sparkle finishes download the zip file and extract the zip file (which means installation should be ready).
For this I also found that there is a post #850 may solve this issue by postponing relaunch but I don't really understand how to implement this delegate and what is the right time to wait for relaunch like I mentioned above.
I also found even I close my app manually, the Sparkle starts the Autoupdate app in cache folder and move the new app to the Application folder. But it won't relaunch the app for me.
I have tried checkForUpdate method and it contains the UI popups, I wonder if there is an alternative way that we can force the UI to choose "Start Update" and "Install and Restart".
I found updater:willInstallUpdateOnQuit:immediateInstallationInvocation may solve this issue.
Most helpful comment
I found updater:willInstallUpdateOnQuit:immediateInstallationInvocation may solve this issue.