-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 for Windows on MacOS using Docker container #871
Comments
How did you install Docker? Parallels and VMWare are broken. Please use only latest official Docker for mac (https://docs.docker.com/engine/installation/mac/#/docker-for-mac). Please do not use Docker Toolbox. |
Oh, I was using Docker Toolbox. Let me try it following your instructions and post you back. In the meantime, Can you confirm if the only environment that can build for Windows, Linux and macOS is macOS (following the Multi Platform Build wiki)? If this is right, I can use the Docker image in my Mac to build for Linux and Windows, but building for macOS I cannot do it in a container (because of the certificates). Right? |
Yes. One exception — "If your app has native dependencies, windows can be compiled only on the target platform — windows." In any case I strongly suggest to build app on CI servers due to security reasons.
You can build even without Docker. Docker just help you to not install wine and other dependencies. |
Got it. I don't want to use CI servers because I'm trying to create a private CI server locally. One server to build for all platforms (considering there isn't native dependencies), so it has to be a macOS. Using containers for Linux and Windows will help having clean environments, but building for macOS is the problem, because it cannot be build it inside a container. Is this correct? EDIT: Using Docker without Toolbox solved the problem. Now works like a champ! |
Yes. |
Thank you so much for your help and this tool. |
I'm trying to build for Windows from my macOS using the Docker container provided (electronuserland/electron-builder:wine). Everthing works great building for Linux, but when I tried to build for Windows, throw an error:
The steps to run the container and build are these:
docker run --rm -ti -v /my/folder/project:/project -v ~/.electron:/root/.electron electronuserland/electron-builder:wine /bin/bash
npm run build:win64
(equals to build --win --x64)Am I doing something wrong?
The text was updated successfully, but these errors were encountered: