From 30cbd56ed5d69969591c917641ddc0fccf0bc72d Mon Sep 17 00:00:00 2001 From: Kylart Date: Sun, 29 Mar 2020 20:12:10 +0200 Subject: [PATCH] Added artifacts --- appveyor.yml | 3 +++ scripts/moveLibs.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 9a35d96..99e461f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -46,6 +46,9 @@ install: build: off +artifacts: + - path: 'public\*.dll' + test_script: - node --version - npm --version diff --git a/scripts/moveLibs.js b/scripts/moveLibs.js index 4a44fb5..527e512 100644 --- a/scripts/moveLibs.js +++ b/scripts/moveLibs.js @@ -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) }