DevMate / DevMateKit

Development and Distribution Assistance Platform for Mac Developers
https://devmate.com
22 stars 3 forks source link

Enabling automatic updates in Swift #19

Closed rudedogg closed 8 years ago

rudedogg commented 8 years ago

In my AppDelegate applicationDidFinishLaunching I have: DM_SUUpdater.sharedUpdater().automaticallyChecksForUpdates = true

Do I need to do anything else to have the app check for updates? I setup the delegate method and can see it's getting called when I use the menu item and run: DevMateKit.checkForUpdates(nil, includeBetaCheck: false, inTestMode: false)

But due to the timer, I can't tell if it's called automatically on app start (I had manually checked for updates previously).

dimaty commented 8 years ago

Hi. Yes, you are doing everything right. Setting up automaticallyChecksForUpdates property causes to restart checking timer and it will fire after SUMinimumUpdateCheckInterval from the last check (you can check this in Sparkle sources). And DevMateKit.checkForUpdates... cuases to run updater immediately (but with UI).

rudedogg commented 8 years ago

@dimaty Thank you for the explanation and confirmation!