Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions targets.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const common = require('./common')
const downloadArch = require('electron-download/lib/arch')
const hostArch = require('electron-download/lib/arch').host
const semver = require('semver')

const officialArchs = ['ia32', 'x64', 'armv7l', 'arm64', 'mips64el']
Expand Down Expand Up @@ -93,13 +93,11 @@ module.exports = {
return archs
},
createPlatformArchPairs: createPlatformArchPairs,
hostArch: downloadArch.host,
officialArchs: officialArchs,
officialPlatformArchCombos: officialPlatformArchCombos,
officialPlatforms: officialPlatforms,
osModules: osModules,
supported: supported,
unameArch: downloadArch.uname,
// Validates list of architectures or platforms.
// Returns a normalized array if successful, or throws an Error.
validateListFromOptions: function validateListFromOptions (opts, name) {
Expand All @@ -108,7 +106,7 @@ module.exports = {
let list = opts[name]
if (!list) {
if (name === 'arch') {
list = module.exports.hostArch()
list = hostArch()
} else {
list = process[name]
}
Expand Down