Skip to content

Commit

Permalink
support v8-canary builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 12, 2017
1 parent 1a6fd19 commit c595af8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion decode-ref.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const assert = require('assert')
, dirre = /^(v\d+\.\d+\.\d+(?:-rc\.\d+)?)(?:-(?:(?:next-)?nightly|test)\d{8}(\w+))?$/ // get version or commit from dir name
, dirre = /^(v\d+\.\d+\.\d+(?:-rc\.\d+)?)(?:-(?:(?:next-)?nightly|test|v8-canary)\d{8}(\w+))?$/ // get version or commit from dir name


function decodeRef (dir) {
Expand All @@ -22,6 +22,7 @@ if (module === require.main) {
, { dir: 'v0.6.1' , ref: 'v0.6.1' }
, { dir: 'v0.5.1' , ref: 'v0.5.1' }
, { dir: 'v6.0.0-test20151107093b0e865c' , ref: '093b0e865c' }
, { dir: 'v9.0.0-v8-canary20170609cd40078f1f' , ref: 'cd40078f1f' }
]

tests.forEach(function (test) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"after": "~0.8.2",
"bl": "~1.1.2",
"hyperquest": "~1.0.1",
"bl": "~1.2.1",
"hyperquest": "~2.1.2",
"map-async": "~0.1.1",
"minimist": "~1.2.0",
"semver": "~5.3.0"
Expand Down
10 changes: 9 additions & 1 deletion transform-filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const assert = require('assert')


function transformFilename (file) {
file = file && file.replace(/^(?:\.\/)?(?:iojs|node)-v\d+\.\d+\.\d+-?((rc\.\d+|(next-)?nightly\d{8}[^-\.]+)-?)?\.?/, '')
file = file && file.replace(/^(?:\.\/)?(?:iojs|node)-v\d+\.\d+\.\d+-?((rc\.\d+|(?:(next-)?nightly|test|v8-canary)\d{8}[^-\.]+)-?)?\.?/, '')
.replace(/\.tar\.gz$/, '')
return types[file]
}
Expand Down Expand Up @@ -125,6 +125,14 @@ if (module === require.main) {
, { file: 'node-v0.11.9.tar.gz', type: 'src' }
, { file: 'node.exe', type: 'win-x86-exe' }
, { file: 'x64/node.exe', type: 'win-x64-exe' }
, { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-darwin-x64.tar.gz', type: 'osx-x64-tar' }
, { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-darwin-x64.tar.xz' }
, { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-headers.tar.gz', type: 'headers' }
, { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-headers.tar.xz' }
, { file: 'node-v9.0.0-test20170609cd40078f1f-darwin-x64.tar.gz', type: 'osx-x64-tar' }
, { 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' }
]

tests.forEach(function (test) {
Expand Down

0 comments on commit c595af8

Please sign in to comment.