inkle / inky

An editor for ink: inkle's narrative scripting language
http://www.inklestudios.com/ink
2.38k stars 288 forks source link

Upgrade to New Electron Release #254

Open lunarcloud opened 4 years ago

lunarcloud commented 4 years ago

https://www.electronjs.org/docs/tutorial/support#supported-versions

Electron versions 1-12 are EOL, this project uses Electron 4.

Version 7 has better support for dark mode autodetection. ( #230 ) Version 8 has the Chrome spell-checker built in. ( #40 ) This should help with further improvements / updates too.

joethephish commented 4 years ago

Oh dear.

Well, I started upgrading in the the branch electron8. Tracker for issues:

Any help to debug so that upgrade can be done would be appreciated!

tobloef commented 1 year ago

This would also help with M1 support (though only if using electron v11 and above). With the current version, it is not possible to compile on modern Macs, as far as I can tell.

cyanlink commented 1 year ago

This would also help with M1 support (though only if using electron v11 and above). With the current version, it is not possible to compile on modern Macs, as far as I can tell.

Yes, before electron v11 there were no apple silicon arm64 support, no corresponding release at all. just did a run check, to migrate current codebase of inky to latest electron v25, many nuanced changes (i don't know exactly how many) and refactoring are needed, too many breaking changes happend throughout the years (not just node integration, but also the removal & replacement of remote module and etc, many practices has changed around the new sandbox model and renderer/main process communication). But it's pointless to migrate to some version in between because we might need to catch up to latest sooner or later. We should definitely keep the usage of @electron/remote as is, since it would be unfeasible to rewrite all of the logic with ipcRenderer#invoke.