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 for Windows on Mac using electron-builder #1853
Comments
Is it working fine before packaging it on windows? |
Thanks for reply. When I build electron on Windows it works fine. I am trying to use prebuild-install before build on Mac now but can't figured out some step, still working on it. |
Your concern is not clear to me. Could you please elaborate your issue? |
@iamsush OK, I will create a repository for reproduction on Github, thanks. |
Ok, thanks. |
Here is the testing repository: https://github.com/DonaldChiang/node-serialport-testing
And you can see this error Thanks! |
Even I have had this issue, to resolve it I established my code on windows machine and it worked fine. Have a look at this issue, #966. Does this resolve yours? |
Yes, I can build electron on Windows and it works fine on Windows. So now my question is: it look like I can only compile node-serialport on Windows if I want to build an electron app for Windows version Is there any guide for setup prebuild or node-gyp for multiple platform build? Thank you very much! |
Even I am not sure of this, Let @reconbot reply to this. |
I know there are electron build tools for cross platform building. (I have in the past built Linux windows and OS X from my OS X laptop) they wouldn’t be serialport specific.
|
Hi pitching in cause im also interested in bundling for multiple platforms / electron I would expect that there is a way to use the precompiled binaries that are located here : That is also mentioned in the docs 'We use prebuild to compile and post binaries of the library for most common use cases (Linux, Mac, Windows on standard processor platforms). ' But I have not been able to find clear documtation on how to make use of the posted binaries. is my understanding correct, and if so , can you post a sample of how to use the prebuilts ? |
It’s used by the npm install process, we use the package named prebuild-install to download them. And the package named bindings to load them. I have no idea how to distribute electron apps without building them.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a |
I've run into this since trying to upgrade to Electron 5, for which there are no prebuilt packages. It looks like something between electron-builder calling node-gyp-rebuild and @serialport/bindings, something is not getting compiled. electron-userland/electron-builder#3660 has some details, e.g. here's the result of rebuilding:
electron-userland/electron-builder#4012 has a debug log:
|
I have the same issue with Electron 6, did you solve it @danni ? |
I haven't come back to it yet, sorry. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a |
I don't know if anything changed in the most recent update, but the most recent update permitted me to upgrade to Electron 6. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a |
Summary of Problem
(Please answer all 3)
I am trying to build a multiple platform electron app with node-serialport on Mac
Electron can run on Mac perfectly but on Windows it shows this error
And I am using electron-builder to build my electron app with no errors and I already run electron-rebuild every time before building.
It should work as Mac's version
Code to Reproduce the Issue
Versions, Operating System and Hardware
6.2.2
v8.12.0
Build on macOS 10.14.3 Mojave
The text was updated successfully, but these errors were encountered: