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

Possible to use a docker to build on different SYstem? #58

Open
gino8080 opened this issue Apr 1, 2020 · 3 comments
Open

Possible to use a docker to build on different SYstem? #58

gino8080 opened this issue Apr 1, 2020 · 3 comments

Comments

@gino8080
Copy link

gino8080 commented Apr 1, 2020

Hello like subject

I was wondering if it's possible to use docker images to build for different system (like Electron does)

I'm on OSX atm
and I wish to build for Windows and Linux

thankyou!

@a7ul
Copy link
Collaborator

a7ul commented Apr 1, 2020

It should be possibe to build for linux using docker. But I am not sure if you have docker images for windows ? @gino8080

@gino8080
Copy link
Author

gino8080 commented Apr 1, 2020

On electron I can package a window executable using a command like this:

docker run --rm -ti \
 --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
 --env ELECTRON_CACHE="/root/.cache/electron" \
 --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
 -v ${PWD}:/project \
 -v ${PWD##*/}-node-modules:/project/node_modules \
 -v ~/.cache/electron:/root/.cache/electron \
 -v ~/.cache/electron-builder:/root/.cache/electron-builder \
 electronuserland/builder:wine

@a7ul
Copy link
Collaborator

a7ul commented Apr 1, 2020

Interesting approach actually (using wine to build windows binaries). I ll take a look when I can. Thanks for letting me know.

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

No branches or pull requests

2 participants