Skip to content

Commit 199e09c

Browse files
authored
[TECH]: update electron (#3628)
* tech: update electron * fix: lint * fix: e2e
1 parent 32772c6 commit 199e09c

File tree

4 files changed

+28
-32
lines changed

4 files changed

+28
-32
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
"devDependencies": {
106106
"@electron/notarize": "^2.1.0",
107-
"@playwright/test": "1.39.0",
107+
"@playwright/test": "1.42.1",
108108
"@testing-library/dom": "9.0.1",
109109
"@testing-library/jest-dom": "5.16.4",
110110
"@testing-library/react": "14.0.0",
@@ -124,7 +124,7 @@
124124
"@typescript-eslint/parser": "5.47.1",
125125
"@vitejs/plugin-react-swc": "3.2.0",
126126
"cross-env": "7.0.3",
127-
"electron": "castlabs/electron-releases#27.0.0+wvcus",
127+
"electron": "castlabs/electron-releases#29.1.3+wvcus",
128128
"electron-builder": "24.6.4",
129129
"electron-devtools-installer": "3.2.0",
130130
"eslint": "8.36.0",

src/backend/api/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ipcRenderer, TitleBarOverlayOptions } from 'electron'
1+
import { ipcRenderer, TitleBarOverlay } from 'electron'
22
import {
33
Runner,
44
InstallPlatform,
@@ -135,7 +135,7 @@ export const getThemeCSS = async (theme: string) =>
135135

136136
export const getCustomThemes = async () => ipcRenderer.invoke('getCustomThemes')
137137

138-
export const setTitleBarOverlay = (options: TitleBarOverlayOptions) =>
138+
export const setTitleBarOverlay = (options: TitleBarOverlay) =>
139139
ipcRenderer.send('setTitleBarOverlay', options)
140140

141141
export const isGameAvailable = async (args: {

src/common/typedefs/ipcBridge.d.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { EventEmitter } from 'node:events'
2-
import {
3-
IpcMainEvent,
4-
OpenDialogOptions,
5-
TitleBarOverlayOptions
6-
} from 'electron'
2+
import { IpcMainEvent, OpenDialogOptions, TitleBarOverlay } from 'electron'
73

84
import {
95
Runner,
@@ -108,7 +104,7 @@ interface SyncIPCFunctions {
108104
maximizeWindow: () => void
109105
unmaximizeWindow: () => void
110106
closeWindow: () => void
111-
setTitleBarOverlay: (options: TitleBarOverlayOptions) => void
107+
setTitleBarOverlay: (options: TitleBarOverlay) => void
112108
winetricksInstall: ({
113109
runner: Runner,
114110
appName: string,

yarn.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)