From 88fac420cbd6302819a14341d39236057ef3a8b8 Mon Sep 17 00:00:00 2001 From: Igor Klopov Date: Sat, 3 Sep 2016 18:13:38 +0300 Subject: [PATCH] skip osx-x86 - fixes #2 --- lib/upload.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/upload.js b/lib/upload.js index bba28e1..1faaf46 100644 --- a/lib/upload.js +++ b/lib/upload.js @@ -7,7 +7,11 @@ import path from 'path'; import { upload } from './cloud.js'; import { version } from '../package.json'; -function isBrokenBuild (nodeVersion, targetArch) { +function dontBuild (nodeVersion, targetArch) { + // https://support.apple.com/en-us/HT201948 + if (hostPlatform === 'osx' && + targetArch === 'x86') return true; + // official node 0.12 does not compile on arm if (/^v?0/.test(nodeVersion) && /^arm/.test(targetArch)) return true; return false; @@ -20,7 +24,7 @@ export async function main () { for (const nodeVersion in patchesJson) { for (const targetArch of targetArchs) { - if (isBrokenBuild(nodeVersion, targetArch)) continue; + if (dontBuild(nodeVersion, targetArch)) continue; const local = localPlace({ from: 'built', arch: targetArch, nodeVersion, platform: hostPlatform, version }); const short = path.basename(local);