Skip to content

Commit b0a9363

Browse files
committed
add logs
1 parent 301d825 commit b0a9363

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ export class CxInstaller {
8787
}
8888

8989
async downloadFile(url: string, outputPath: string) {
90+
console.log('Downloading file from:', url);
9091
const writer = fs1.createWriteStream(outputPath);
92+
console.log('Downloading file to:', outputPath);
9193
const response = await axios({url, responseType: 'stream'});
94+
console.log('Downloading file...');
9295
response.data.pipe(writer);
96+
console.log('Downloaded file');
9397
return new Promise((resolve, reject) => {
9498
writer.on('finish', resolve);
9599
writer.on('error', reject);
@@ -103,6 +107,7 @@ export class CxInstaller {
103107
} else {
104108
executablePath = path.join(this.resourceDirPath, 'cx.tar.gz');
105109
}
110+
console.log('Zip path:', executablePath)
106111
return executablePath;
107112
}
108113

0 commit comments

Comments
 (0)