Bump electron version (#152)

This commit is contained in:
Tomasz Hołubowicz 2022-06-23 17:00:35 +02:00 committed by GitHub
parent 8f47756244
commit 7b18322e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 331 additions and 193 deletions

View File

@ -1,7 +1,7 @@
appId: com.rickvanlieshout.tidal-hifi appId: com.rickvanlieshout.tidal-hifi
electronVersion: 15.5.2 electronVersion: 19.0.5
electronDownload: electronDownload:
version: 15.5.2-wvvmp version: 19.0.5+wvcus
mirror: https://github.com/castlabs/electron-releases/releases/download/v mirror: https://github.com/castlabs/electron-releases/releases/download/v
snap: snap:
plugs: plugs:

511
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,8 +34,8 @@
}, },
"devDependencies": { "devDependencies": {
"@mastermindzh/prettier-config": "^1.0.0", "@mastermindzh/prettier-config": "^1.0.0",
"electron": "git+https://github.com/castlabs/electron-releases.git#v15.5.2-wvvmp", "electron": "git+https://github.com/castlabs/electron-releases.git#v19.0.5+wvcus",
"electron-builder": "^22.14.5", "electron-builder": "^23.2.0",
"prettier": "^2.5.0" "prettier": "^2.5.0"
}, },
"prettier": "@mastermindzh/prettier-config" "prettier": "@mastermindzh/prettier-config"

View File

@ -1,5 +1,5 @@
require("@electron/remote/main").initialize(); require("@electron/remote/main").initialize();
const { app, BrowserWindow, globalShortcut, ipcMain } = require("electron"); const { app, BrowserWindow, components, globalShortcut, ipcMain } = require("electron");
const { const {
settings, settings,
store, store,
@ -124,8 +124,9 @@ function addGlobalShortcuts() {
// This method will be called when Electron has finished // This method will be called when Electron has finished
// initialization and is ready to create browser windows. // initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs. // Some APIs can only be used after this event occurs.
app.on("ready", () => { app.on("ready", async () => {
if (isMainInstanceOrMultipleInstancesAllowed()) { if (isMainInstanceOrMultipleInstancesAllowed()) {
await components.whenReady();
createWindow(); createWindow();
addMenu(); addMenu();
createSettingsWindow(); createSettingsWindow();