Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building fails with: Error: Exit code: ENOENT. spawn prlctl ENOENT #4333

Closed
andreborud opened this issue Oct 18, 2019 · 14 comments
Closed

Building fails with: Error: Exit code: ENOENT. spawn prlctl ENOENT #4333

andreborud opened this issue Oct 18, 2019 · 14 comments
Labels

Comments

@andreborud
Copy link

  • Version: 21.2.0
  • Electron updater: 4.1.2
  • Target: mac & win
    Electron 6.0.12 & Node 12.4.0

Trying to build for win and mac (on a mac with Catalina) manages to build some of the files but the fails here:

% electron-builder build --mac --win
  • electron-builder  version=21.2.0 os=19.0.0
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=desktop-releases/builder-effective-config.yaml
  • packaging       platform=darwin arch=x64 electron=6.0.12 appOutDir=desktop-releases/mac
  • signing         file=desktop-releases/mac/App.app identityName=************
  • building        target=macOS zip arch=x64 file=desktop-releases/App-mac.zip
  • building        target=DMG arch=x64 file=desktop-releases/App-0.3.16.dmg
  • packaging       platform=win32 arch=x64 electron=6.0.12 appOutDir=desktop-releases/win-unpacked
  • building        target=nsis file=desktop-releases/App Setup 0.3.16.exe archs=x64 oneClick=true perMachine=false
  • building block map  blockMapFile=desktop-releases/App-0.3.16.dmg.blockmap
  • building embedded block map  file=desktop-releases/App-0.3.16-mac.zip
  ⨯ Exit code: ENOENT. spawn prlctl ENOENT  stackTrace=
                                                        Error: Exit code: ENOENT. spawn prlctl ENOENT
                                                            at /Users/andreborud/.nvm/versions/node/v12.4.0/lib/node_modules/electron-builder/node_modules/builder-util/src/util.ts:125:16
                                                            at exithandler (child_process.js:297:5)
                                                            at ChildProcess.errorhandler (child_process.js:309:5)
                                                            at ChildProcess.emit (events.js:200:13)
                                                            at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)


                                                            at onErrorNT (internal/child_process.js:456:16)
                                                            at processTicksAndRejections (internal/process/task_queues.js:84:9)

is this a config error or something else?

@roby65
Copy link

roby65 commented Oct 18, 2019

Catalina doesn't support 32bit anymore, so compiling Win32 is not possible anymore.
As a workaround, I am using a VM with Win10 to compile it.

@andreborud
Copy link
Author

Update: The building error is only when building for Windows.

@roby65 even though Catalina doesn't support 32bit anymore, shouldn't it be able to build for Win 64bit? Adding the --x64 flag with building for Win produces the same error. But thanks for the tip, I will try to build it on my windows machine. But it would be nice to build for all platforms with one command.

@roby65
Copy link

roby65 commented Oct 18, 2019

AFAIK wine, used to build for Win, is 32bit, so it doesn't work

@andreborud
Copy link
Author

I see, that would break it!

@Annihil
Copy link

Annihil commented Oct 30, 2019

@dmtask
Copy link

dmtask commented Nov 6, 2019

I have the same Problem. The Docker Solution does not work help me, because it is a 32Bit Installtion and my 64bit Files crashed... :(

@muhsin-k
Copy link

muhsin-k commented Nov 7, 2019

@dmtask Any luck?

@dmtask
Copy link

dmtask commented Nov 8, 2019

@muhzi4u No... I didn't try any more. Wait and see if there are any new updates from the electron team.

@muhsin-k
Copy link

muhsin-k commented Nov 8, 2019

@muhzi4u I am also waiting. We are facing a lot of challenges, after updating to Catalina. Also did you able to take the macOS build?

@dmtask
Copy link

dmtask commented Nov 8, 2019

No, I'm afraid not. Under MacOS he no longer takes the Developer certificate and refuses to start the app. But building is possible.

@dmtask
Copy link

dmtask commented Nov 10, 2019

@muhzi4u
I was able to solve the startup problem under MacOS with the help of https://github.com/electron/electron-osx-sign.

You have to sign the app and it is important that the option "hardened-runtime" is enabled. Under MacOS 10.15.x this is mandatory.

The Windows Problems I'll look at it tomorrow, but i think i can fix it with Docker.

@Zophyr
Copy link

Zophyr commented Nov 29, 2019

Try this: #4305 (comment)

@stale
Copy link

stale bot commented Jan 28, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Jan 28, 2020
@stale stale bot closed this as completed Feb 4, 2020
@reddybhavanish
Copy link

Facing the same issue while building the app using Circle CI tool. Any leads to proceed further? Any help is much appreciated?

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

No branches or pull requests

7 participants