Update to Electron 37

Changes: https://www.electronjs.org/blog/electron-37-0
This commit is contained in:
Manav Rathi
2025-07-01 10:26:52 +05:30
parent 0abf4354aa
commit fda415aab1
3 changed files with 5 additions and 13 deletions

View File

@@ -48,7 +48,7 @@
"ajv": "^8.17.1",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
"electron": "^36.6.0",
"electron": "^37.1.0",
"electron-builder": "26.0.14",
"eslint": "^9",
"prettier": "3.5.3",

View File

@@ -78,14 +78,6 @@ export const allowWindowClose = (): void => {
* We call this at the end of this file.
*/
const main = () => {
// Workaround for Electron 36 not launching on some Linux distros. Remove
// once fixed or otherwise mitigated upstream.
//
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722
if (process.platform == "linux") {
app.commandLine.appendSwitch("gtk-version", "3");
}
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
app.quit();

View File

@@ -1248,10 +1248,10 @@ electron-updater@^6.6.5:
semver "^7.6.3"
tiny-typed-emitter "^2.1.0"
electron@^36.6.0:
version "36.6.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-36.6.0.tgz#12070efb0ac8c87dc4dc448eb018c85b15e66726"
integrity sha512-Tkkw4udDADEWKdbhzckt2CS0gwDTXwZUb2JWxX01HJXAeb8SBlTdQUtxUiAwIIWe0suGuot+uBs1bDPz931A6w==
electron@^37.1.0:
version "37.1.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-37.1.0.tgz#6d6d1891f8add5d2d44007e2ee5d4542140fc4b4"
integrity sha512-Fcr3yfAw4oU392waVZSlrFUQx4P+h/k31+PRgkBY9tFx9E/zxzdPQQj0achZlG1HRDusw3ooQB+OXb9PvufdzA==
dependencies:
"@electron/get" "^2.0.0"
"@types/node" "^22.7.7"