mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Only check for updates on code signed builds
This commit is contained in:
7
atom.gyp
7
atom.gyp
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user