@ekoneko/evm
v1.0.5
Published
electron version manager
Downloads
3
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.version
is required.
These options comes from @electron/get, it also works for electron-builder.
- Then add
@ekoneko/evm
by npm or yarn to yourdevDependencies
npm install -D @ekoneko/evm
- use
evm
instead ofelectron
to launch your project.
./node_modules/.bin/evm path/to/entry.js
You 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 electron
Configure
process.env.ELECTRON_VERSION_MANAGER_PATH
Set a path to install electron binary file, default path is ~/.evm
.