Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Can we build independent executable with sharing underline electron runtime memory #13

Open
Anil8753 opened this issue Jun 30, 2020 · 1 comment

Comments

@Anil8753
Copy link

Can we build independent executables means applicaion1.exe and application2.exe having different names and different icons?
Still electron main process runtime is shared.

@eliot-akira
Copy link

eliot-akira commented Sep 15, 2020

I believe electron-global provides a mechanism for using a single shared Electron install, but each application must create a new and independent instance / runtime process.

It's technically possible to do this from within the applications - they can coordinate to share the same runtime process. This can be achieved with a library like node-ipc for inter-process communication. Basically, whichever application starts first will become the "server"; subsequent applications will detect it and hand over its control, to let that runtime load it in a new window. I have an old but working example called singletron that demonstrates this - maybe you'll find it useful for reference.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants