Simple node module to download the mksnapshot
binaries compatible with
Electron for creating v8 snapshots.
This minor version of this library tracks the minor version of the Electron
versions released. So if you are using Electron 1.4.x
you would want to use
an electron-mksnapshot
dependency of ~1.4.0
in your package.json
file.
npm install --save-dev electron-mksnapshot
mksnapshot --help
You can set the ELECTRON_MIRROR
or NPM_CONFIG_ELECTRON_MIRROR
environment variables to use a custom base URL for downloading mksnapshot zips.
# Electron mirror for China
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
# Local mirror
# Example of requested URL: http://localhost:8080/1.2.0/mksnapshot-v1.2.0-darwin-x64.zip
ELECTRON_MIRROR="http://localhost:8080/"