Skip to content

Commit

Permalink
Remove deprecated target arch API (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Dec 4, 2018
1 parent 41bf218 commit 3cbb080
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions 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']
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

0 comments on commit 3cbb080

Please sign in to comment.