Autoupdate.mm 232 B

1234567891011
  1. #ifdef SPARKLE
  2. #import <Cocoa/Cocoa.h>
  3. #import "Sparkle.h"
  4. #endif
  5. void OSX_checkForUpdates() {
  6. #ifdef SPARKLE
  7. SUUpdater* updater = [[SUUpdater alloc] init];
  8. [[SUUpdater sharedUpdater] checkForUpdatesInBackground];
  9. #endif
  10. }