Electron is an open source library, combining the Blink rendering engine, found in Google Chrome web browser, and Node.js JavaScript environment. Initially developed for the Atom text editor, it is now used in wide variety of software ranging from desktop applications to games.
- Most command line arguments for Chromium can take effect.
- Easy to port to another platform or architecture if no other platform/arch specified binary used.
Modding
Enabling Electron debugging
|
To debug the the native (Node.js) code:
- Set the game launch option to
--inspect
- Using any Chromium-based browser (eg. Google Chrome), go to
chrome://inspect
- Click inspect under Remote Target
|
Enabling web inspector
|
To debug the the web content (Chromium) interface code:
- Enable Electron debugging and attach to remote target
- Type
require('electron').app.once('browser-window-focus', (e, w) => w.webContents.openDevTools())
- Switch to the game window and the web inspector should open
|
API
Technical specs |
Supported |
Notes |
Direct3D |
9, 11, 12 |
Launch with --use-gl=egl --use-angle=%API% , value can be d3d9, d3d11, d3d11on12 (require higher version of nw.js). DX11 is default in most games and devices. |
OpenGL |
|
Launch with --use-gl=egl --use-angle=gl |
Software renderer |
|
Launch with --disable-gpu |
Vulkan |
|
Launch with --use-gl=egl --use-angle=vulkan |
Executable |
32-bit |
64-bit | ARM |
Notes |
Windows |
|
| |
Windows ARM support added in 6.0.8[1] |
macOS (OS X) | |
| |
Darwin-ia32 never supported since the project named as Electron from v0.24. |
Linux | |
| |
Linux 32-bit discontinued from 4.0[2]. Both ARMv7l and ARM64 supported. |
Games use Electron