mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
chore(electron): upgrade electron to v32 (#8235)
workaround provided by https://github.com/electron/electron/issues/43556
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@
|
|||||||
"@vitest/coverage-istanbul": "2.0.5",
|
"@vitest/coverage-istanbul": "2.0.5",
|
||||||
"@vitest/ui": "2.0.5",
|
"@vitest/ui": "2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"electron": "^31.0.0",
|
"electron": "^32.0.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-import-x": "^0.5.0",
|
"eslint-plugin-import-x": "^0.5.0",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"builder-util-runtime": "^9.2.5-alpha.2",
|
"builder-util-runtime": "^9.2.5-alpha.2",
|
||||||
"core-js": "^3.36.1",
|
"core-js": "^3.36.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"electron": "^31.0.0",
|
"electron": "^32.0.0",
|
||||||
"electron-log": "^5.1.2",
|
"electron-log": "^5.1.2",
|
||||||
"electron-squirrel-startup": "1.0.1",
|
"electron-squirrel-startup": "1.0.1",
|
||||||
"electron-window-state": "^5.0.3",
|
"electron-window-state": "^5.0.3",
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ import { launchStage } from './windows-manager/stage';
|
|||||||
app.enableSandbox();
|
app.enableSandbox();
|
||||||
|
|
||||||
app.commandLine.appendSwitch('enable-features', 'CSSTextAutoSpace');
|
app.commandLine.appendSwitch('enable-features', 'CSSTextAutoSpace');
|
||||||
|
// https://github.com/electron/electron/issues/43556
|
||||||
|
app.commandLine.appendSwitch('disable-features', 'PlzDedicatedWorker');
|
||||||
|
|
||||||
// use the same data for internal & beta for testing
|
// use the same data for internal & beta for testing
|
||||||
if (overrideSession) {
|
if (overrideSession) {
|
||||||
|
|||||||
@@ -9,6 +9,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@toeverything/infra": "workspace:*",
|
"@toeverything/infra": "workspace:*",
|
||||||
"electron": "^31.0.0"
|
"electron": "^32.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -539,7 +539,7 @@ __metadata:
|
|||||||
resolution: "@affine/electron-api@workspace:packages/frontend/electron-api"
|
resolution: "@affine/electron-api@workspace:packages/frontend/electron-api"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@toeverything/infra": "workspace:*"
|
"@toeverything/infra": "workspace:*"
|
||||||
electron: "npm:^31.0.0"
|
electron: "npm:^32.0.0"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
@@ -578,7 +578,7 @@ __metadata:
|
|||||||
builder-util-runtime: "npm:^9.2.5-alpha.2"
|
builder-util-runtime: "npm:^9.2.5-alpha.2"
|
||||||
core-js: "npm:^3.36.1"
|
core-js: "npm:^3.36.1"
|
||||||
cross-env: "npm:^7.0.3"
|
cross-env: "npm:^7.0.3"
|
||||||
electron: "npm:^31.0.0"
|
electron: "npm:^32.0.0"
|
||||||
electron-log: "npm:^5.1.2"
|
electron-log: "npm:^5.1.2"
|
||||||
electron-squirrel-startup: "npm:1.0.1"
|
electron-squirrel-startup: "npm:1.0.1"
|
||||||
electron-updater: "npm:^6.2.1"
|
electron-updater: "npm:^6.2.1"
|
||||||
@@ -726,7 +726,7 @@ __metadata:
|
|||||||
"@vitest/coverage-istanbul": "npm:2.0.5"
|
"@vitest/coverage-istanbul": "npm:2.0.5"
|
||||||
"@vitest/ui": "npm:2.0.5"
|
"@vitest/ui": "npm:2.0.5"
|
||||||
cross-env: "npm:^7.0.3"
|
cross-env: "npm:^7.0.3"
|
||||||
electron: "npm:^31.0.0"
|
electron: "npm:^32.0.0"
|
||||||
eslint: "npm:^8.57.0"
|
eslint: "npm:^8.57.0"
|
||||||
eslint-config-prettier: "npm:^9.1.0"
|
eslint-config-prettier: "npm:^9.1.0"
|
||||||
eslint-plugin-import-x: "npm:^0.5.0"
|
eslint-plugin-import-x: "npm:^0.5.0"
|
||||||
@@ -20656,16 +20656,16 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"electron@npm:^31.0.0":
|
"electron@npm:^32.0.0":
|
||||||
version: 31.4.0
|
version: 32.1.0
|
||||||
resolution: "electron@npm:31.4.0"
|
resolution: "electron@npm:32.1.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@electron/get": "npm:^2.0.0"
|
"@electron/get": "npm:^2.0.0"
|
||||||
"@types/node": "npm:^20.9.0"
|
"@types/node": "npm:^20.9.0"
|
||||||
extract-zip: "npm:^2.0.1"
|
extract-zip: "npm:^2.0.1"
|
||||||
bin:
|
bin:
|
||||||
electron: cli.js
|
electron: cli.js
|
||||||
checksum: 10/445bf8b04f0f8fcc16da4832634507c01bbdd6733ef8236e2216f8f4667d070115d41b7bd28f73ca91f819a720a629e1cbea08b079fa7bde424fd24b6aef4499
|
checksum: 10/88338c4820968946469518b0ff5d7256a97525a5ac3ff23c56e25b28dbdd9ae319e4164f21f22623fa5d0f7d52c8c3afb6b2bea573d88b3566f3255d123d2cf0
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user