forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
develar edited this page Jun 28, 2016
·
1 revision
To build Linux or Windows (only if you don't have native dependencies) on any platform:
-
Run docker container:
docker run --rm -ti -v ${PWD}:/project -v ${PWD##*/}-node-modules:/project/node_modules -v ~/.electron:/root/.electron electronuserland/electron-builder:wine
-
Type in
npm install && npm prune && npm run distIf you don't have
distnpm script in yourpackage.json, call./node_modules/.bin/builddirectly.
Or to avoid second step, append to first command /bin/bash -c "npm install && npm prune && npm run dist"
If you don't need to build Windows, use image electronuserland/electron-builder:latest (wine is not installed in this image).
You can use /test.sh to install npm dependencies and run tests.