update the windows pre-gyp script (#1072)

This commit is contained in:
Yavor Georgiev 2017-06-16 11:01:22 +02:00 committed by GitHub
parent 0f5d6a1df4
commit 208dc858b5
1 changed files with 2 additions and 2 deletions

View File

@ -20,10 +20,10 @@ New-Item .\out -ItemType "directory"
npm install --ignore-scripts
foreach ($arch in "ia32", "x64") {
foreach ($version in "4.0.0", "5.0.0", "6.0.0", "7.0.0") {
foreach ($version in "4.0.0", "5.0.0", "6.0.0", "7.0.0", "8.0.0") {
Remove-Item .\build, .\compiled -Recurse -Force -ErrorAction Ignore
.\node_modules\node-pre-gyp\bin\node-pre-gyp.cmd rebuild --target_arch=$arch --target=$version
.\node_modules\node-pre-gyp\bin\node-pre-gyp.cmd package --target_arch=$arch --target=$version
Copy-Item .\build\stage\node-pre-gyp\*.tar.gz -Destination .\out
Copy-Item .\build\stage\node-pre-gyp\**\*.tar.gz -Destination .\out
}
}