Closed 4ian closed 2 years ago
@nilaymaj You did the last update, would you be interested in taking this? Happy to open a large bounty if you're interested, let me know :)
Sure, let me try this - it's much larger than the earlier upgrade (10 major versions!). I'll start with going through and summarising the Electron changelog, may take a couple of days.
We're probably only interesting in the breaking changes ;) https://www.electronjs.org/docs/latest/breaking-changes
From a quick look, these are the changes we need to take care about:
@electron/remote
and in the long term move toward a "preload.js" approach, but this should be done carefully one feature by one).fs
on Windows on Electron 8 with this flag).session
object methods.setWindowOpenHandler
contextIsolation
should be set to false (and nodeIntegration kept to true
). In the long term this should be removed (in favor of the "preload.js" approach).Done in https://github.com/4ian/GDevelop/pull/3854#issuecomment-1120437947
Please, developers, don't forget to run again npm install
in newIDE/app
and newIDE/electron-app
.
It's a long time (1.5 year) since we last updated Electron. We're lagging behind several major versions now and it may be the reason for some performance issue on some OS.
We should:
remote
to use@electron/remote
...I'm ready to open a large bounty to do that if someone wants to take this task :) Bonus point if you do the removal of
remote
/@electron/remote
entirely in favor of an API exposed in preload.js - but I'm willing not to do that first to ensure we can release asap a version with a new Electron version without breakages.