Only check for updates on code signed builds

This commit is contained in:
Kevin Sawicki
2013-04-05 10:16:56 -07:00
parent f8fbfc8624
commit 9633677bcc
2 changed files with 15 additions and 6 deletions

View File

@@ -269,6 +269,13 @@
'native/mac/English.lproj/AtomWindow.xib',
'native/mac/English.lproj/MainMenu.xib',
],
'conditions': [
['CODE_SIGN', {
'defines': [
'CODE_SIGNING_ENABLED=1',
],
}],
],
'postbuilds': [
{
'postbuild_name': 'Copy Static Files',

View File

@@ -254,12 +254,14 @@
}
else {
_backgroundWindowController = [[AtomWindowController alloc] initInBackground];
if (![self.arguments objectForKey:@"dev"]) {
SUUpdater.sharedUpdater.delegate = self;
SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES;
[SUUpdater.sharedUpdater checkForUpdatesInBackground];
}
#if defined(CODE_SIGNING_ENABLED)
SUUpdater.sharedUpdater.delegate = self;
SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES;
[SUUpdater.sharedUpdater checkForUpdatesInBackground];
#endif
}
}