![]() ![]() On macOS you can either run the cross arch mksnapshot directly on arm64 hardware or if you wish you can generate the snapshot on an Intel X64 macOS hardware via the following: npm config set arch arm64 Npm install -save-dev electron-mksnapshotįrom an Intel 圆4 Linux OS run: npm config set arch armv7lįrom an Intel 圆4 Windows OS run: npm config set arch arm64 ![]() For example: Linux on ARM64įrom an Intel 圆4 Linux OS run: npm config set arch arm64 To do so, set the npm config arch to the proper arch and then run npm install -save-dev electron-mksnapshot. If you need to generate snapshots for Linux on 32 bit ARM, Linux on ARM64, or Windows on ARM64 you will need to install a cross arch mksnapshot on an Intel 圆4 machine. # Install mksnapshot for Electron v8.3.0ĮLECTRON_CUSTOM_VERSION=8.3.0 npm install The version downloaded can be overriden by setting the ELECTRON_CUSTOM_VERSION environment variable. # Electron mirror for ChinaĮLECTRON_MIRROR= "" # Local mirror # Example of requested URL: ELECTRON_MIRROR= " Overriding the version downloaded You can set the ELECTRON_MIRROR or NPM_CONFIG_ELECTRON_MIRRORĮnvironment variables to use a custom base URL for downloading mksnapshot zips. (Additional mksnapshot args except for -startup_blob are supported, run mksnapshot -help to see options) Custom Mirror If an output directory isn't specified, the current directory will be used. ![]() Running mksnapshot.js will generate both a snapshot_blob.bin and v8_context_snapshot.bin files whichĪre needed to use custom snapshots in Electron. Mksnapshot.js file.js (-output_dir OUTPUT_DIR). Using npm install -save-dev electron-mksnapshot So if you are using Electron 2.0.x you would want to useĪn electron-mksnapshot dependency of ~2.0.0 in your package.json file. The major version of this library tracks the major version of the Electron Simple node module to download the mksnapshot binaries compatible with ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |