Skip to content

Commit 967a7cc

Browse files
committed
Update build directory
1 parent b9c6a36 commit 967a7cc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const { spawn, buildPaths, exists } = require('./shared');
2323
`--target-dir=${buildPaths.build}`,
2424
'--release'
2525
]);
26+
2627
await fs.copyFile(
2728
buildPaths.exeOut,
2829
buildPaths.exeFinal

shared.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path');
22
const { promises: fs } = require('fs');
33
const { spawn: spawnSync } = require('child_process');
44

5-
const { getTargetArch } = require('./utils/getTarget');
5+
const { getTargetArch, getRustTarget } = require('./utils/getTarget');
66

77
const spawn = (...args) => new Promise((resolve, reject) => {
88
let stdout = Buffer.alloc(0);
@@ -33,7 +33,7 @@ const getPaths = (arch) => ({
3333
submodule: path.join(__dirname, 'deps', 'dump_syms'),
3434
bin: path.join(__dirname, 'bin', `${process.platform}-${arch}`),
3535
build: path.join(__dirname, 'build'),
36-
exeOut: path.join(__dirname, 'build', 'release', `dump_syms${exe}`),
36+
exeOut: path.join(__dirname, 'build', getRustTarget(), 'release', `dump_syms${exe}`),
3737
exeFinal: path.join(__dirname, 'bin', `${process.platform}-${arch}`, `dump_syms${exe}`),
3838
});
3939

0 commit comments

Comments
 (0)