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

build mac on ubuntu16 #5209

Closed
msi008 opened this issue Aug 7, 2020 · 3 comments
Closed

build mac on ubuntu16 #5209

msi008 opened this issue Aug 7, 2020 · 3 comments
Labels

Comments

@msi008
Copy link

msi008 commented Aug 7, 2020

  • Version: 22.7.0
  • Electron Version: 8.3.4
  • Electron Type (current, beta, nightly):
  • Target: mac dmg

It always fails to build MAC installation package in Ubuntu environment,

I want to generate the DMG installation package and command electron-builder -m

The error information is as follows:

⨯ Cannot cleanup:

Error #1 --------------------------------------------------------------------------------
Error: Exit code: ENOENT. spawn productbuild ENOENT
at /imclass-pc/node_modules/builder-util/src/util.ts:129:16
at exithandler (child_process.js:296:5)
at ChildProcess.errorhandler (child_process.js:308:5)
at ChildProcess.emit (events.js:182:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)

Error #2 --------------------------------------------------------------------------------
Error: spawn hdiutil ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19) stackTrace=

How can I solve it gracefully

@baruchvlz
Copy link

baruchvlz commented Aug 7, 2020

As far as I know, Mac builds can only be built in Mac.

@b-zurg
Copy link
Contributor

b-zurg commented Aug 11, 2020

lol yeah the solution is to have a mac man. Or get a sketchy vm setup. If you configure things through trial and error you should be able to get a build running on github actions as it has actual mac runners available. Although then how do you test the install....

@stale
Copy link

stale bot commented Oct 10, 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 Oct 10, 2020
@stale stale bot closed this as completed Oct 17, 2020
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

3 participants