This project contains a prebuilt Electron for Windows x64 with winax and ffi that require rebuild against corresponding header files.
Simply run npm install electron-prebuilt-win
to install and then launch electron
from the dist
directory.
Electron will only search node_modules
from the application directory or upper, so these prebuilt
node modules dist/node_modules
will not be able to loaded. Here is a workaround:
set "ELECTRON_HOME=path\to\electron-prebuilt-win\dist"
set "PATH=%ELECTRON_HOME%;%PATH%"
start "" electron.exe myapp
In the entry point (e.g. main.js), add this line at top
const prebuiltModuleDir = process.env.ELECTRON_HOME + '\\resources\\node_modules'
require('module').globalPaths.push(prebuiltModuleDir)
- Download iojs headers for Windows with this
./get_iojs.sh 2.02.2
(from amazon.s3 slow!) - Run
./build.sh
(you can comment out some sub tasks, if your project is file size sensitive)
Electron release cycle seems to be quite active these days. I'm not sure I could update the major release asap. My current focus to keep the latest stable versions to be synchronized. Unstable versions or lagacy stable version might not be taken good care of. Here are some todo items:
- If you are a Travis expert, please help to make the build in Travis CI system.
- If you have special needs of certain Electron version, please contact me with Wechat "qxu0000".