Skip to content

Commit

Permalink
[TECH]: update electron (#3628)
Browse files Browse the repository at this point in the history
* tech: update electron

* fix: lint

* fix: e2e
  • Loading branch information
imLinguin authored Mar 22, 2024
1 parent 32772c6 commit 199e09c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 32 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
},
"devDependencies": {
"@electron/notarize": "^2.1.0",
"@playwright/test": "1.39.0",
"@playwright/test": "1.42.1",
"@testing-library/dom": "9.0.1",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "14.0.0",
Expand All @@ -124,7 +124,7 @@
"@typescript-eslint/parser": "5.47.1",
"@vitejs/plugin-react-swc": "3.2.0",
"cross-env": "7.0.3",
"electron": "castlabs/electron-releases#27.0.0+wvcus",
"electron": "castlabs/electron-releases#29.1.3+wvcus",
"electron-builder": "24.6.4",
"electron-devtools-installer": "3.2.0",
"eslint": "8.36.0",
Expand Down
4 changes: 2 additions & 2 deletions src/backend/api/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ipcRenderer, TitleBarOverlayOptions } from 'electron'
import { ipcRenderer, TitleBarOverlay } from 'electron'
import {
Runner,
InstallPlatform,
Expand Down Expand Up @@ -135,7 +135,7 @@ export const getThemeCSS = async (theme: string) =>

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

export const setTitleBarOverlay = (options: TitleBarOverlayOptions) =>
export const setTitleBarOverlay = (options: TitleBarOverlay) =>
ipcRenderer.send('setTitleBarOverlay', options)

export const isGameAvailable = async (args: {
Expand Down
8 changes: 2 additions & 6 deletions src/common/typedefs/ipcBridge.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { EventEmitter } from 'node:events'
import {
IpcMainEvent,
OpenDialogOptions,
TitleBarOverlayOptions
} from 'electron'
import { IpcMainEvent, OpenDialogOptions, TitleBarOverlay } from 'electron'

import {
Runner,
Expand Down Expand Up @@ -108,7 +104,7 @@ interface SyncIPCFunctions {
maximizeWindow: () => void
unmaximizeWindow: () => void
closeWindow: () => void
setTitleBarOverlay: (options: TitleBarOverlayOptions) => void
setTitleBarOverlay: (options: TitleBarOverlay) => void
winetricksInstall: ({
runner: Runner,
appName: string,
Expand Down
44 changes: 22 additions & 22 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 199e09c

Please sign in to comment.