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

Cannot make build for windows and mac on my linux machine #1479

Closed
himanshu21092 opened this issue Apr 19, 2017 · 4 comments
Closed

Cannot make build for windows and mac on my linux machine #1479

himanshu21092 opened this issue Apr 19, 2017 · 4 comments

Comments

@himanshu21092
Copy link

himanshu21092 commented Apr 19, 2017

I am using 8.7.0 version of electron-builder. I am trying to build for MacOS and WIndows. I am very new to electron, I am facing different errors on both builds. And I am using Linux machine for build.

MacOS build error :-

build --mac

Skip app dependencies rebuild because platform is different
Packaging for darwin x64 using electron 1.6.2 to dist/mac
⚠️ Do not use "undefined" as appId, "com.electron.pos" will be used instead
⚠️ macOS application code signing is supported only on macOS, skipping.
Building DMG
Building macOS zip
Error: spawn hdiutil ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

Windows build error :-

build --win

Skip app dependencies rebuild because platform is different
Error: Cannot check wine version: Error: Exit code: ENOENT. spawn wine ENOENT
at /home/himanshu/Documents/electron/node_modules/electron-builder/src/packager.ts:300:13
at throw (native)

Please help me resolve this. Thanks in advance.

@develar
Copy link
Member

develar commented Apr 19, 2017

Please see https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build you need to install wine. And please use latest version.

@himanshu21092
Copy link
Author

Hi, Thanks @develar for swift reply. I am able to build exe for windows but still not able to generate dmg for mac. Can you help me with that?

@develar
Copy link
Member

develar commented Apr 24, 2017

You can build DMG only on macOs.

@himanshu21092
Copy link
Author

Okay thanks so much.

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

No branches or pull requests

2 participants