diff --git a/package.json b/package.json index e6e0eb11..3459969b 100644 --- a/package.json +++ b/package.json @@ -251,4 +251,4 @@ "pre-commit": "pretty-quick --staged && npm run lint" } } -} \ No newline at end of file +} diff --git a/src/app/auto-update-handler.ts b/src/app/auto-update-handler.ts index 92b30981..555963bd 100644 --- a/src/app/auto-update-handler.ts +++ b/src/app/auto-update-handler.ts @@ -1,5 +1,4 @@ import { GenericServerOptions } from 'builder-util-runtime'; -import fetch from 'electron-fetch'; import electronLog from 'electron-log'; import { MacUpdater, NsisUpdater } from 'electron-updater'; import * as fs from 'fs'; @@ -252,7 +251,7 @@ export class AutoUpdate { return; }; - private fetchLatestVersion = async (): Promise => { + private fetchLatestVersion = async (): Promise => { await this.setAutoUpdateChannel(); return new Promise((resolve) => { const url = this.getUpdateUrl(); @@ -276,6 +275,7 @@ export class AutoUpdate { url, error, ); + resolve(); }); }); };