Skip to content

Commit

Permalink
build release
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 6, 2025
1 parent 22c55b2 commit ffb69ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]);
Expand All @@ -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);
Expand Down

0 comments on commit ffb69ae

Please sign in to comment.