Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 5715fbc

Browse files
authored
Merge pull request #36 from nylas-mail-lives/DisableUpdater
add early returns for auto-updater
2 parents 6c526ad + b3e1b31 commit 5715fbc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/client-app/src/browser/auto-update-manager.es6

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export default class AutoUpdateManager extends EventEmitter {
3030

3131
this.updateFeedURL();
3232

33-
setTimeout(() => this.setupAutoUpdater(), 0);
33+
this.setState(NoUpdateAvailableState); // TODO: Remove to re-enable
34+
// setTimeout(() => this.setupAutoUpdater(), 0); // TODO: Uncomment to re-enable
3435
}
3536

3637
parameters = () => {
@@ -59,6 +60,7 @@ export default class AutoUpdateManager extends EventEmitter {
5960
}
6061

6162
updateFeedURL = () => {
63+
return; // TODO: Remove to re-enable
6264
const params = this.parameters();
6365

6466
let host = `edgehill.nylas.com`;
@@ -80,6 +82,7 @@ export default class AutoUpdateManager extends EventEmitter {
8082
}
8183

8284
setupAutoUpdater() {
85+
return; // TODO: Remove to re-enable
8386
if (process.platform === 'win32') {
8487
autoUpdater = require('./windows-updater-squirrel-adapter');
8588
} else if (process.platform === 'linux') {
@@ -130,6 +133,7 @@ export default class AutoUpdateManager extends EventEmitter {
130133
}
131134

132135
emitUpdateAvailableEvent() {
136+
return; // TODO: Remove to re-enable
133137
if (!this.releaseVersion) {
134138
return;
135139
}
@@ -152,6 +156,7 @@ export default class AutoUpdateManager extends EventEmitter {
152156
}
153157

154158
check({hidePopups} = {}) {
159+
return; // TODO: Remove to re-enable
155160
this.updateFeedURL();
156161
if (!hidePopups) {
157162
autoUpdater.once('update-not-available', this.onUpdateNotAvailable);
@@ -168,6 +173,7 @@ export default class AutoUpdateManager extends EventEmitter {
168173
}
169174

170175
install() {
176+
return; // TODO: Remove to re-enable
171177
if (process.platform === "win32") {
172178
// On windows the update has already been "installed" and shortcuts
173179
// already updated. You just need to restart the app to load the new

0 commit comments

Comments
 (0)