Skip to content

Electron fork(child.js) on mac win32 build does not work. Building on windows works. #5980 #6826

Open
@leopucci

Description

  • Version: electron-builder version=22.11.7 os=20.1.0 ==> MACOS
  • Electron Version: v12.0.7
  • Electron Type (current, beta, nightly): current
  • Target: platform=win32 arch=x64 WINDOWS 10

I am forking inside main. Like this:
const p = fork(path.join(__dirname, 'child.js'));
p.on('exit', function (code) { console.log('Child exited with code ' + code); });

What happens is that when I build at windows (electron-builder version=22.11.7 os=10.0.19043), install on it, the fork is made and code runs properly. as expected.

When i build at Mac, and install on windows, I get exit code 1.

I have already compared the app.asar file, and the hierarchy of the forked file is the same on both.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions