another tiny change to:
1. show user that they are update-to-date if no newer update exists
2. configure automatically checking for update, every day
Change-Id: I64369be14f313b9867f351d40d1bae02082cf698
diff --git a/osx/auto-update/sparkle-auto-update.mm b/osx/auto-update/sparkle-auto-update.mm
index 9429892..ef59657 100644
--- a/osx/auto-update/sparkle-auto-update.mm
+++ b/osx/auto-update/sparkle-auto-update.mm
@@ -34,7 +34,6 @@
{
d = new Private;
d->updater = [[SUUpdater sharedUpdater] retain];
- // [d->updater setAutomaticallyChecksForUpdates:YES];
NSURL *url = [NSURL URLWithString: [NSString stringWithUTF8String: updateUrl.toUtf8().data()]];
[d->updater setFeedURL: url];
}
@@ -48,6 +47,7 @@
void SparkleAutoUpdate::checkForUpdates()
{
- [d->updater checkForUpdatesInBackground];
+ //[d->updater checkForUpdatesInBackground];
+ [d->updater checkForUpdates : nil];
printf("++++++++ checking update ++++++\n");
}
diff --git a/wscript b/wscript
index 8fd2b02..03e23b3 100644
--- a/wscript
+++ b/wscript
@@ -231,6 +231,10 @@
<string>1</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
+ <key>SUEnableAutomaticChecks</key>
+ <Boolean>YES</Boolean>
+ <key>SUScheduledCheckInterval</key>
+ <Number>86400</Number>
</dict>
</plist>'''
qt.mac_app = "ChronoShare.app"