Skip to content

Commit 632ee34

Browse files
committed
update electorn dependencies
1 parent fff73d8 commit 632ee34

File tree

5 files changed

+153
-634
lines changed

5 files changed

+153
-634
lines changed

packages/desktop/electron/main.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -357,18 +357,19 @@ app.on('window-all-closed', () => {
357357
}
358358
})
359359

360-
powerMonitor.on('suspend', () => {
361-
// MacOS, Windows and Linux
362-
windows.main?.webContents?.send('power-monitor-suspend')
363-
})
360+
app.once('ready', () => {
361+
powerMonitor.on('suspend', () => {
362+
// MacOS, Windows and Linux
363+
windows.main?.webContents?.send('power-monitor-suspend')
364+
})
364365

365-
powerMonitor.on('lock-screen', () => {
366-
// MacOS and Windows
367-
windows.main?.webContents?.send('power-monitor-lock-screen')
368-
})
366+
powerMonitor.on('lock-screen', () => {
367+
// MacOS and Windows
368+
windows.main?.webContents?.send('power-monitor-lock-screen')
369+
})
369370

370-
app.once('ready', () => {
371371
ipcMain.handle('error-data', () => lastError)
372+
372373
app.on('activate', () => {
373374
// On macOS it's common to re-create a window in the app when the
374375
// dock icon is clicked and there are no other windows open.

packages/desktop/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"@sentry/electron": "^2.5.4",
3333
"@types/webpack-dev-server": "^4.7.2",
3434
"dotenv": "^16.0.3",
35-
"electron-dl": "^3.5.0",
36-
"electron-log": "^4.3.1",
37-
"electron-updater": "5.3.0",
35+
"electron-dl": "^3.5.1",
36+
"electron-log": "^4.4.8",
37+
"electron-updater": "6.1.4",
3838
"https-browserify": "^1.0.0",
3939
"keytar": "^7.9.0",
4040
"node-machine-id": "^1.1.12",
@@ -48,9 +48,9 @@
4848
"copy-webpack-plugin": "^11.0.0",
4949
"cross-env": "^7.0.2",
5050
"css-loader": "^6.7.3",
51-
"electron": "22.3.27",
52-
"electron-builder": "^24.0.0",
53-
"electron-notarize": "^1.0.0",
51+
"electron": "27.0.2",
52+
"electron-builder": "^24.6.4",
53+
"@electron/notarize": "^2.1.0",
5454
"esbuild-loader": "^4.0.2",
5555
"lodash.merge": "^4.6.2",
5656
"mini-css-extract-plugin": "^2.7.6",

packages/desktop/scripts/notarize.macos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { notarize } = require('electron-notarize')
1+
const { notarize } = require('@electron/notarize')
22
const path = require('path')
33

44
/**

patches/electron-updater+5.3.0.patch

-25
This file was deleted.

0 commit comments

Comments
 (0)