Skip to content

Commit fa0f727

Browse files
committed
fix: extract binaries tarball to root directory
1 parent 4f266d2 commit fa0f727

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

scripts/download-binaries.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@ async function downloadBinaries() {
4545

4646
console.log(`Downloading binaries for ${VERSION}...`);
4747

48-
// Create build directory
49-
if (!fs.existsSync(buildDir)) {
50-
fs.mkdirSync(buildDir, { recursive: true });
51-
}
52-
5348
const releaseUrl = `https://github.com/${REPO}/releases/download/${VERSION}/binaries.tar.gz`;
54-
const tempFile = path.join(buildDir, 'binaries.tar.gz');
49+
const tempFile = path.join(__dirname, '..', 'binaries.tar.gz');
5550

5651
try {
5752
// Download the binary archive
@@ -62,7 +57,7 @@ async function downloadBinaries() {
6257
console.log('Extracting binaries...');
6358
await tar.x({
6459
file: tempFile,
65-
cwd: buildDir,
60+
cwd: path.join(__dirname, '..'),
6661
});
6762

6863
// Clean up

0 commit comments

Comments
 (0)