diff --git a/build/build.js b/build/build.js index ee8fd5f..4844788 100644 --- a/build/build.js +++ b/build/build.js @@ -73,7 +73,7 @@ async function packageExtension(target) { } async function copyResult(filepath, target) { - const srcFilename = path.join(filepath, 'dawn.node'); + const srcFilename = path.join(...[filepath, ...addElemIf(isWin, 'Debug'), 'dawn.node']); const dstFilename = path.join('dist', `${target}.dawn.node`); fs.mkdirSync(path.dirname(dstFilename), {recursive: true}); fs.copyFileSync(srcFilename, dstFilename);