Skip to content

Commit

Permalink
fix: updater ignoring beta channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Enubia committed Mar 5, 2023
1 parent c724653 commit e583bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electron/main/autoUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export default class AutoUpdater {

private init() {
this.autoUpdater.logger = log;

// this.autoUpdater.channel = this.channel;
this.autoUpdater.autoDownload = false;

if (this.forceDevUpdateConfig) {
this.autoUpdater.forceDevUpdateConfig = true;
Expand All @@ -45,6 +44,7 @@ export default class AutoUpdater {
if (info.version.includes('beta') && this.store.get('updater').channel !== 'beta') {
this.sendStatusToWindow(IpcEvent.UpdateNotAvailable);
} else {
this.autoUpdater.downloadUpdate();
this.sendStatusToWindow(IpcEvent.UpdateAvailable, info.version);
}
});
Expand Down

0 comments on commit e583bf5

Please sign in to comment.