Skip to content

Commit ffb69ae

Browse files
committed
build release
1 parent 22c55b2 commit ffb69ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async function buildDawnNode() {
3232
...addElemIf(!isWin, '-GNinja'),
3333
'-DDAWN_BUILD_NODE_BINDINGS=1',
3434
'-DDAWN_USE_X11=OFF',
35+
'-DCMAKE_BUILD_TYPE=Release',
3536
...addElemIf(isWin, '-DCMAKE_SYSTEM_VERSION=10.0.26100.0'),
3637
...addElemIf(isMac, '-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'),
3738
]);
@@ -46,7 +47,7 @@ async function buildDawnNode() {
4647
}
4748

4849
async function copyResult(filepath, target) {
49-
const srcFilename = path.join(...[filepath, ...addElemIf(isWin, 'Debug'), 'dawn.node']);
50+
const srcFilename = path.join(...[filepath, ...addElemIf(isWin, 'Release'), 'dawn.node']);
5051
const dstFilename = path.join('dist', `${target}.dawn.node`);
5152
fs.mkdirSync(path.dirname(dstFilename), {recursive: true});
5253
fs.copyFileSync(srcFilename, dstFilename);

0 commit comments

Comments
 (0)