Skip to content

Commit

Permalink
add Windows packages and win-arm files support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jaimecbernardo authored and joaocgreis committed Nov 2, 2017
1 parent c3915c3 commit b1ba460
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions transform-filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b1ba460

Please sign in to comment.