From b1ba4604418fdbb7dfa0ede8d7dad89010a29906 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Wed, 26 Jul 2017 19:23:25 +0100 Subject: [PATCH] add Windows packages and win-arm files support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for Windows binary package distribution files (zip and 7z). Add support for Windows arm binary distribution files (currently used in "Node.js on ChakraCore" releases). Add tests to transform-filename.js. PR-URL: https://github.com/nodejs/nodejs-dist-indexer/pull/5 Reviewed-By: João Reis --- transform-filename.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/transform-filename.js b/transform-filename.js index eb4992d..bfed6d2 100644 --- a/transform-filename.js +++ b/transform-filename.js @@ -19,10 +19,18 @@ const assert = require('assert') , 'x86.msi' : 'win-x86-msi' , 'win-x64/iojs.exe' : 'win-x64-exe' , 'win-x86/iojs.exe' : 'win-x86-exe' + , 'win-arm/iojs.exe' : 'win-arm-exe' , 'win-x64/node.exe' : 'win-x64-exe' , 'win-x86/node.exe' : 'win-x86-exe' + , 'win-arm/node.exe' : 'win-arm-exe' , 'node.exe' : 'win-x86-exe' , 'x64/node.exe' : 'win-x64-exe' + , 'win-x64.7z' : 'win-x64-7z' + , 'win-x86.7z' : 'win-x86-7z' + , 'win-arm.7z' : 'win-arm-7z' + , 'win-x64.zip' : 'win-x64-zip' + , 'win-x86.zip' : 'win-x86-zip' + , 'win-arm.zip' : 'win-arm-zip' , 'headers' : 'headers' } @@ -133,6 +141,13 @@ if (module === require.main) { , { file: 'node-v9.0.0-test20170609cd40078f1f-darwin-x64.tar.xz' } , { file: 'node-v9.0.0-test20170609cd40078f1f-headers.tar.gz', type: 'headers' } , { file: 'node-v9.0.0-test20170609cd40078f1f-headers.tar.xz' } + , { file: 'win-arm/node.exe', type: 'win-arm-exe' } + , { file: 'node-v8.1.4-win-arm.7z', type: 'win-arm-7z' } + , { file: 'node-v8.1.4-win-arm.zip', type: 'win-arm-zip' } + , { file: 'node-v8.1.4-win-x64.7z', type: 'win-x64-7z' } + , { file: 'node-v8.1.4-win-x64.zip', type: 'win-x64-zip' } + , { file: 'node-v8.1.4-win-x86.7z', type: 'win-x86-7z' } + , { file: 'node-v8.1.4-win-x86.zip', type: 'win-x86-zip' } ] tests.forEach(function (test) {