From ce9cdcba46e98b8eaccfcb35e7c796d3f510df44 Mon Sep 17 00:00:00 2001 From: calebboyd Date: Mon, 27 Nov 2017 12:56:41 -0600 Subject: [PATCH] feat(releases): add arm7l architecture as buildable releases --- src/releases.ts | 1 + src/target.ts | 7 +++++-- test/shim-fs.spec.ts | 0 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 test/shim-fs.spec.ts diff --git a/src/releases.ts b/src/releases.ts index ec3978c..e79503b 100644 --- a/src/releases.ts +++ b/src/releases.ts @@ -59,6 +59,7 @@ export async function getUnBuiltReleases(options?: any) { platforms.forEach(platform => { architectures.forEach(arch => { if (arch === 'x86' && platform === 'mac') return + if (arch === 'arm71' && platform !== 'linux') return versions.push(getTarget({ platform, arch, version })) }) }) diff --git a/src/target.ts b/src/target.ts index 96f68e6..5a4a693 100644 --- a/src/target.ts +++ b/src/target.ts @@ -1,8 +1,8 @@ export type NodePlatform = 'windows' | 'mac' | 'alpine' | 'linux' -export type NodeArch = 'x86' | 'x64' +export type NodeArch = 'x86' | 'x64' | 'arm71' const platforms: NodePlatform[] = ['windows', 'mac', 'alpine', 'linux'], - architectures: NodeArch[] = ['x86', 'x64'] + architectures: NodeArch[] = ['x86', 'x64', 'arm71'] export { platforms, architectures } @@ -28,6 +28,9 @@ const prettyPlatform: { [key: string]: NodePlatform } = { //TODO arm const prettyArch: { [key: string]: NodeArch } = { x86: 'x86', + arm: 'arm71', + arm7: 'arm71', + arm71: 'arm71', amd64: 'x64', ia32: 'x86', x32: 'x86', diff --git a/test/shim-fs.spec.ts b/test/shim-fs.spec.ts new file mode 100644 index 0000000..e69de29