Added artifacts

This commit is contained in:
Kylart 2020-03-29 20:12:10 +02:00
parent c9821373ef
commit 30cbd56ed5
2 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,9 @@ install:
build: off
artifacts:
- path: 'public\*.dll'
test_script:
- node --version
- npm --version

View File

@ -3,6 +3,7 @@ const { copyFileSync } = require('fs')
const { join, basename } = require('path')
const PUBLIC_DIR = join(__dirname, '..', 'public')
const BINDINGS_BUILD_PATH = join(__dirname, '..', 'bindings', 'build', 'Release')
function moveToPublic (filepath) {
try {
@ -28,6 +29,8 @@ function windows () {
'libssl-1_1-x64.dll'
].map((dll) => join(sys32Path, dll))
requiredDlls.push(join(BINDINGS_BUILD_PATH, 'torrent-rasterbar.dll'))
requiredDlls.forEach(moveToPublic)
}