Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Sep 18, 2024
1 parent 6c4b05e commit 1ab52e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/osinstaller/CxInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export class CxInstaller {

try {
console.log(`Downloading from: ${url}`);
await downloadFile(url, "/resources");
console.log(`Downloaded to: /resources`);
await downloadFile(url, outputPath);
console.log(`Downloaded to: ${outputPath}`);

// Now extract the downloaded archive
} catch (error) {
Expand Down Expand Up @@ -191,8 +191,7 @@ async function downloadFile(downloadURLPath: string, filePath: string): Promise<
responseType: 'stream'
});
// Create the file stream at the specified filePath
let check =process.cwd()+"/src/main/wrapper/resources/cx"
const fileStream = createWriteStream(check);
const fileStream = createWriteStream(process.cwd()+"/src/main/wrapper/resources/cx");

// Pipe the response data to the file
response.data.pipe(fileStream);
Expand Down

0 comments on commit 1ab52e0

Please sign in to comment.