Update TypeScript to 4.4.2

This commit is contained in:
Fedor Indutny 2021-08-27 13:21:42 -07:00 committed by GitHub
parent 853e27e9eb
commit a43abe628a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 21 additions and 462 deletions

View file

@ -8,7 +8,7 @@ import { dirname } from 'path';
import { v4 as getGuid } from 'uuid';
import { app, autoUpdater, BrowserWindow } from 'electron';
import { get as getFromConfig } from 'config';
import config from 'config';
import { gt } from 'semver';
import got from 'got';
@ -136,7 +136,7 @@ async function downloadAndInstall(
return;
}
const publicKey = hexToBinary(getFromConfig('updatesPublicKey'));
const publicKey = hexToBinary(config.get('updatesPublicKey'));
const verified = await verifySignature(updateFilePath, version, publicKey);
if (!verified) {
// Note: We don't delete the cache here, because we don't want to continually