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