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);