Install windows-build-tools
from an Administrative Windows PowerShell : See https://github.com/felixrieseberg/windows-build-tools
See https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#macos
See https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#linux
mkdir mybuildenv
(or whatever you want to call it)cd mybuildenv
(or whatever you want to call it)git clone https://github.com/LaserWeb/lw.comm-server.git
git clone https://github.com/LaserWeb/LaserWeb4.git
cd LaserWeb4 && git fetch && git checkout dev-es6 && npm install --verbose && npm run installdev
cd .. && cd lw.comm-server && git fetch && git checkout electron_bundler && npm install --verbose
cd LaserWeb4
npm run bundle-dev
cd lw.comm-server
./node_modules/.bin/electron-rebuild
- Run
npm run dist
to create installer
Optional: You can also run npm copy && ./node_modules/.bin/build
and append cross platform switches (--mac, --win, --linux to specify platforms. And --ia32, --x64 to specify arch. For example, to build app for MacOS, Windows and Linux: build -mwl) - see https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build for details
(Only after confirming each step on its own works)
mkdir mybuildenv &&\
cd mybuildenv &&\
git clone https://github.com/LaserWeb/lw.comm-server.git &&\
git clone https://github.com/LaserWeb/LaserWeb4.git &&\
cd LaserWeb4 &&\
git fetch && git checkout dev-es6 &&\
npm install --verbose &&\
npm run installdev &&\
cd .. && cd lw.comm-server &&\
git fetch && git checkout electron_bundler &&\
npm install --verbose &&\
cd .. && cd LaserWeb4 &&\
npm run bundle-dev &&\
cd .. && cd lw.comm-server &&\
./node_modules/.bin/electron-rebuild &&\
npm run dist
cd LaserWeb4 && git reset --hard && git pull && npm run installdev
npm run bundle-dev
cd ../lw.comm-server && git checkout electron_bundler && git reset --hard && git pull && npm install
./node_modules/.bin/electron-rebuild
npm run dist
#!bin/bash
cd LaserWeb4 && git reset --hard && git pull && npm run installdev && npm run bundle-dev && cd ..
cd lw.comm-server && git checkout electron_bundler && git reset --hard && git pull && npm install && ./node_modules/.bin/electron-rebuild
#if you need
#npm run dist