@ekoneko/evm
v1.0.5
Published
electron version manager
Readme
Electron version manager
Use global electron binary file for multiple repositories.
How to use
- Before add @ekoneko/evm, ensure your package.json has property
build.electronDownload.
"build": {
"electronDownload": {
"version": "7.1.2",
"mirror": "https://npm.taobao.org/mirrors/electron/"
}
}build.electronDownload.versionis required.
These options comes from @electron/get, it also works for electron-builder.
- Then add
@ekoneko/evmby npm or yarn to yourdevDependencies
npm install -D @ekoneko/evm- use
evminstead ofelectronto launch your project.
./node_modules/.bin/evm path/to/entry.jsYou don't need to install electron for launching. However, you can set ELECTRON_SKIP_BINARY_DOWNLOAD=1 to install electron without download electron binary file for typescript definitions or some other reasons.
ELECTRON_SKIP_BINARY_DOWNLOAD=1 npm install -D electronConfigure
process.env.ELECTRON_VERSION_MANAGER_PATH
Set a path to install electron binary file, default path is ~/.evm.
