diff --git a/targets.js b/targets.js index 5c0e060f..803cf1f1 100644 --- a/targets.js +++ b/targets.js @@ -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'] @@ -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) { @@ -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] }