Skip to content

Commit 1ab52e0

Browse files
committed
check
1 parent 6c4b05e commit 1ab52e0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export class CxInstaller {
120120

121121
try {
122122
console.log(`Downloading from: ${url}`);
123-
await downloadFile(url, "/resources");
124-
console.log(`Downloaded to: /resources`);
123+
await downloadFile(url, outputPath);
124+
console.log(`Downloaded to: ${outputPath}`);
125125

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

197196
// Pipe the response data to the file
198197
response.data.pipe(fileStream);

0 commit comments

Comments
 (0)