Skip to content

Commit b1ba460

Browse files
jaimecbernardojoaocgreis
authored andcommitted
add Windows packages and win-arm files support
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: #5 Reviewed-By: João Reis <reis@janeasystems.com>
1 parent c3915c3 commit b1ba460

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

transform-filename.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ const assert = require('assert')
1919
, 'x86.msi' : 'win-x86-msi'
2020
, 'win-x64/iojs.exe' : 'win-x64-exe'
2121
, 'win-x86/iojs.exe' : 'win-x86-exe'
22+
, 'win-arm/iojs.exe' : 'win-arm-exe'
2223
, 'win-x64/node.exe' : 'win-x64-exe'
2324
, 'win-x86/node.exe' : 'win-x86-exe'
25+
, 'win-arm/node.exe' : 'win-arm-exe'
2426
, 'node.exe' : 'win-x86-exe'
2527
, 'x64/node.exe' : 'win-x64-exe'
28+
, 'win-x64.7z' : 'win-x64-7z'
29+
, 'win-x86.7z' : 'win-x86-7z'
30+
, 'win-arm.7z' : 'win-arm-7z'
31+
, 'win-x64.zip' : 'win-x64-zip'
32+
, 'win-x86.zip' : 'win-x86-zip'
33+
, 'win-arm.zip' : 'win-arm-zip'
2634
, 'headers' : 'headers'
2735
}
2836

@@ -133,6 +141,13 @@ if (module === require.main) {
133141
, { file: 'node-v9.0.0-test20170609cd40078f1f-darwin-x64.tar.xz' }
134142
, { file: 'node-v9.0.0-test20170609cd40078f1f-headers.tar.gz', type: 'headers' }
135143
, { file: 'node-v9.0.0-test20170609cd40078f1f-headers.tar.xz' }
144+
, { file: 'win-arm/node.exe', type: 'win-arm-exe' }
145+
, { file: 'node-v8.1.4-win-arm.7z', type: 'win-arm-7z' }
146+
, { file: 'node-v8.1.4-win-arm.zip', type: 'win-arm-zip' }
147+
, { file: 'node-v8.1.4-win-x64.7z', type: 'win-x64-7z' }
148+
, { file: 'node-v8.1.4-win-x64.zip', type: 'win-x64-zip' }
149+
, { file: 'node-v8.1.4-win-x86.7z', type: 'win-x86-7z' }
150+
, { file: 'node-v8.1.4-win-x86.zip', type: 'win-x86-zip' }
136151
]
137152

138153
tests.forEach(function (test) {

0 commit comments

Comments
 (0)