Sparkle: Silently Auto update my app without UI

Created on 22 Mar 2018  路  1Comment  路  Source: sparkle-project/Sparkle

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".

Most helpful comment

I found updater:willInstallUpdateOnQuit:immediateInstallationInvocation may solve this issue.

>All comments

I found updater:willInstallUpdateOnQuit:immediateInstallationInvocation may solve this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NathanYu1124 picture NathanYu1124  路  3Comments

mikepulaski picture mikepulaski  路  8Comments

ianbytchek picture ianbytchek  路  8Comments

ghost picture ghost  路  3Comments

balthisar picture balthisar  路  12Comments