diff --git a/SUUpdater.m b/SUUpdater.m index 7b5b5989..75a2c94c 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -69,6 +69,11 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv [sharedUpdaters setObject:self forKey:[NSValue valueWithNonretainedObject:bundle]]; host = [[SUHost alloc] initWithBundle:bundle]; [self registerAsObserver]; + + // Saving-the-developer-from-a-stupid-mistake-check: + if (![[[self feedURL] scheme] isEqualToString:@"https"] && ![host publicDSAKey]) + NSRunAlertPanel(@"Insecure update error!", @"For security reasons, you need to distribute your appcast over SSL or sign your updates. See Sparkle's documentation for more information.", @"OK", nil, nil); + // This runs the permission prompt if needed, but never before the app has finished launching because the runloop won't run before that [self performSelector:@selector(startUpdateCycle) withObject:nil afterDelay:0]; }