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

Cross compilation guide / support (maybe only relevant for Electron when you don't have all three OS's) #538

Open
patarapolw opened this issue Jan 15, 2021 · 1 comment

Comments

@patarapolw
Copy link

patarapolw commented Jan 15, 2021

How do you do it? From which OS?

As far as I realize, Linux can build for macOS for [email protected]; but not for Windows. BTW, node-sqlite3 can easily build for all three platforms, when you have right dependencies (like WineHQ).

Though, it might be possible with CI, like Appveyor + Travis; but what are the required settings?

@pietersartain
Copy link

pietersartain commented Apr 26, 2021

For anyone who's not tried this, I can confirm I've had success using electron-builder.

For MacOS I build directly on a local Mac, but Github Actions will likely work fine.

For Windows, I use a Linux Docker-based buildsystem with the correct Wine toolchain available (https://hub.docker.com/r/electronuserland/builder) which I believe performs an electron-rebuild as part of the packaging process, sorting out the node module version.

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

No branches or pull requests

3 participants