mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
Allow manual check for updates on test
But, don't auto check for them
This commit is contained in:
parent
00e7b65ef3
commit
e6a9d91c54
|
@ -302,8 +302,14 @@ export class App extends React.Component<IAppProps, IAppState> {
|
|||
|
||||
this.props.dispatcher.installGlobalLFSFilters(false)
|
||||
|
||||
setInterval(() => this.checkForUpdates(true), UpdateCheckInterval)
|
||||
this.checkForUpdates(true)
|
||||
// We only want to automatically check for updates on beta and prod
|
||||
if (
|
||||
__RELEASE_CHANNEL__ !== 'development' &&
|
||||
__RELEASE_CHANNEL__ !== 'test'
|
||||
) {
|
||||
setInterval(() => this.checkForUpdates(true), UpdateCheckInterval)
|
||||
this.checkForUpdates(true)
|
||||
}
|
||||
|
||||
log.info(`launching: ${getVersion()} (${getOS()})`)
|
||||
log.info(`execPath: '${process.execPath}'`)
|
||||
|
@ -555,14 +561,7 @@ export class App extends React.Component<IAppProps, IAppState> {
|
|||
}
|
||||
|
||||
private checkForUpdates(inBackground: boolean) {
|
||||
if (__LINUX__) {
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
__RELEASE_CHANNEL__ === 'development' ||
|
||||
__RELEASE_CHANNEL__ === 'test'
|
||||
) {
|
||||
if (__LINUX__ || __RELEASE_CHANNEL__ === 'development') {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue