4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
10.83k stars 850 forks source link

Upgrade to Electron 18 #3801

Closed 4ian closed 2 years ago

4ian commented 2 years ago

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:

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.

4ian commented 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 :)

nilaymaj commented 2 years ago

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.

4ian commented 2 years ago

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:

Bouh commented 2 years ago

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.