electron-mksnapshot
Advanced tools
Comparing version 11.0.0 to 11.0.1
@@ -8,3 +8,3 @@ const fs = require('fs') | ||
if (process.arch.indexOf('arm') === 0) { | ||
if (process.arch.indexOf('arm') === 0 && process.platform !== 'darwin') { | ||
console.log(`WARNING: mksnapshot does not run on ${process.arch}. Download | ||
@@ -16,11 +16,4 @@ https://github.com/electron/electron/releases/download/v${versionToDownload}/mksnapshot-v${versionToDownload}-${process.platform}-${process.arch}-x64.zip | ||
if (archToDownload && archToDownload.indexOf('arm') === 0) { | ||
if (process.platform !== 'darwin') { | ||
archToDownload += '-x64' | ||
} else { | ||
console.log(`WARNING: mksnapshot for ${archToDownload} is not available on macOS. Download | ||
https://github.com/electron/electron/releases/download/v${versionToDownload}/mksnapshot-v${versionToDownload}-linux-${archToDownload}-x64.zip | ||
on a x64 Linux OS to generate ${archToDownload} snapshots.`) | ||
process.exit(1) | ||
} | ||
if (archToDownload && archToDownload.indexOf('arm') === 0 && process.platform !== 'darwin') { | ||
archToDownload += '-x64' | ||
} | ||
@@ -27,0 +20,0 @@ |
{ | ||
"name": "electron-mksnapshot", | ||
"version": "11.0.0", | ||
"version": "11.0.1", | ||
"description": "Electron version of the mksnapshot binary", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/electron/mksnapshot", |
@@ -78,1 +78,8 @@ # Electron mksnapshot | ||
``` | ||
### macOS on ARM64 | ||
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: | ||
```sh | ||
npm config set arch arm64 | ||
npm install --save-dev electron-mksnapshot | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85
12258
169