Sparkle shows popup "App up to Date" every time on launch if app is in latest version

180 Views Asked by At

I'm using Sparkle with Go App.

sparkle.m :

#import <Headers/SUUpdater.h>

static SUUpdater* updater = nil;

void sparkle_checkUpdates()
{
    if (!updater) {
        updater = [[SUUpdater sharedUpdater] retain];
    }

    [updater setUpdateCheckInterval:3600];
    [updater checkForUpdates:updater];
}

main.go :

func main() {
    sparkle.Sparkle_checkUpdates()
    // Some blocking call
}

I uploaded an appcast.xml file and Sparkle is working fine, the update is detected properly.

enter image description here

But after updating, on every startup of the app, an 'up to date' popup shows up :

enter image description here

I want this message to not show up. Popup should be shown only if an update is available.

For this I tried replacing

[updater checkForUpdates:updater];

with

[updater checkForUpdatesInBackground];

but now Sparkle doesn't work even if there's an update. No Popup shows up.

What am I missing here ?

Thanks for any help!

0

There are 0 best solutions below