diff --git a/build/build.js b/build/build.js index 5e959ed..4de7cb7 100644 --- a/build/build.js +++ b/build/build.js @@ -32,6 +32,7 @@ async function buildDawnNode() { ...addElemIf(!isWin, '-GNinja'), '-DDAWN_BUILD_NODE_BINDINGS=1', '-DDAWN_USE_X11=OFF', + '-DCMAKE_BUILD_TYPE=Release', ...addElemIf(isWin, '-DCMAKE_SYSTEM_VERSION=10.0.26100.0'), ...addElemIf(isMac, '-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'), ]); @@ -46,7 +47,7 @@ async function buildDawnNode() { } async function copyResult(filepath, target) { - const srcFilename = path.join(...[filepath, ...addElemIf(isWin, 'Debug'), 'dawn.node']); + const srcFilename = path.join(...[filepath, ...addElemIf(isWin, 'Release'), 'dawn.node']); const dstFilename = path.join('dist', `${target}.dawn.node`); fs.mkdirSync(path.dirname(dstFilename), {recursive: true}); fs.copyFileSync(srcFilename, dstFilename);