We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f266d2 commit fa0f727Copy full SHA for fa0f727
1 file changed
scripts/download-binaries.js
@@ -45,13 +45,8 @@ async function downloadBinaries() {
45
46
console.log(`Downloading binaries for ${VERSION}...`);
47
48
- // Create build directory
49
- if (!fs.existsSync(buildDir)) {
50
- fs.mkdirSync(buildDir, { recursive: true });
51
- }
52
-
53
const releaseUrl = `https://github.com/${REPO}/releases/download/${VERSION}/binaries.tar.gz`;
54
- const tempFile = path.join(buildDir, 'binaries.tar.gz');
+ const tempFile = path.join(__dirname, '..', 'binaries.tar.gz');
55
56
try {
57
// Download the binary archive
@@ -62,7 +57,7 @@ async function downloadBinaries() {
62
console.log('Extracting binaries...');
63
58
await tar.x({
64
59
file: tempFile,
65
- cwd: buildDir,
60
+ cwd: path.join(__dirname, '..'),
66
61
});
67
68
// Clean up
0 commit comments