From aee73bdb0ed7238b45a65428d18927e5902c3bb6 Mon Sep 17 00:00:00 2001 From: cryptofyre Date: Tue, 8 Mar 2022 16:03:02 -0600 Subject: [PATCH] Bump & Fix Widevine (note: this breaks window animations until electron fixes their shit.) --- package.json | 6 +++--- src/main/index.ts | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 571d4492..0f94d1bc 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "@types/express": "^4.17.13", "@types/qrcode-terminal": "^0.12.0", "@types/ws": "^8.5.1", - "electron": "git+https://github.com/castlabs/electron-releases.git#16-x-y", + "electron": "git+https://github.com/castlabs/electron-releases.git", "electron-builder": "^22.14.13", "electron-builder-notarize-pkg": "^1.2.0", "electron-webpack": "^2.8.2", @@ -109,9 +109,9 @@ } ], "build": { - "electronVersion": "16.0.7", + "electronVersion": "17.1.0", "electronDownload": { - "version": "16.0.7+wvcus", + "version": "18.0.0-alpha.5+wvcus", "mirror": "https://github.com/castlabs/electron-releases/releases/download/v" }, "appId": "cider", diff --git a/src/main/index.ts b/src/main/index.ts index fa96ddca..5d181f04 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,6 +1,6 @@ require('v8-compile-cache'); -import {app, components, ipcMain} from 'electron'; +const {app, components, ipcMain} = require('electron'); import {join} from 'path'; if (!app.isPackaged) { @@ -41,8 +41,7 @@ app.on('ready', () => { require('vue-devtools').install() } - app.whenReady().then(async () => { - await components.whenReady(); + components.whenReady().then(async () => { const bw = new BrowserWindow() const win = await bw.createWindow()