Skip to content

Commit

Permalink
Fix download on ARM (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaspberryPiFan committed May 11, 2020
1 parent dfc0cd1 commit baeb2a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions download-mksnapshot.js
Expand Up @@ -3,13 +3,16 @@ var path = require('path')
var electronDownload = require('electron-download')
var extractZip = require('extract-zip')
var versionToDownload = require('./package').version

var archToDownload = process.env.npm_config_arch
if (archToDownload === 'arm64') {
archToDownload = 'arm64-x64'
}
function download (version, callback) {
electronDownload({
version: version,
mksnapshot: true,
platform: process.env.npm_config_platform,
arch: process.env.npm_config_arch,
arch: archToDownload,
strictSSL: process.env.npm_config_strict_ssl === 'true',
quiet: ['info', 'verbose', 'silly', 'http'].indexOf(process.env.npm_config_loglevel) === -1
}, callback)
Expand Down

0 comments on commit baeb2a2

Please sign in to comment.