Skip to content

Best approach for scheduling update checks (and installation) even if hostBundle is not running #2169

Answered by zorgiepoo
Davack asked this question in Q&A
Discussion options

You must be logged in to vote

[edit: this is not a common solution. See below answer for what most apps do and what we recommend them to do]

I am assuming the app you are updating still belongs to you, just that you want to update it from another process that also belongs to you, if the app is not running (this "belongs to you" point is important).

Using sparkle-cli, is what you want similar to:

# This lets sparkle schedule update checks automatically (provided it has been granted permission). You can add --check-immediately if you don't want this and want to force a check.
./sparkle bundle-path --defer-install

I'm not saying you have to use sparkle-cli (which just wraps around Sparkle's framework with a minimal UI) …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Davack
Comment options

@zorgiepoo
Comment options

Answer selected by Davack
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants