-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes 3 issues: 1. When forking, Electron 4 forgets to set `process.versions.electron` in the sub-process, making some packages wrongly guess their environment. This commit manually patches this variable. 2. The generated application code also used to not fork the backend when working from sources. Running the backend in the Electron main process was only meant to help with debugging. This commit makes the generated code fork the backend unless a `--no-cluster` flag is specified. 3. When running a bundled application, the backend was forked. But any command line parameter passed to the Electron application wasn't passing any argument down to the backend. This commit makes sure that relevant arguments are passed to the forked backend process. Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
- Loading branch information
1 parent
ae5591e
commit 97e5e66
Showing
4 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters