Socket
Socket
Sign inDemoInstall

electron-mksnapshot

Package Overview
Dependencies
Maintainers
4
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-mksnapshot - npm Package Compare versions

Comparing version 11.0.0 to 11.0.1

13

download-mksnapshot.js

@@ -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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc