File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,13 @@ export class CxInstaller {
87
87
}
88
88
89
89
async downloadFile ( url : string , outputPath : string ) {
90
+ console . log ( 'Downloading file from:' , url ) ;
90
91
const writer = fs1 . createWriteStream ( outputPath ) ;
92
+ console . log ( 'Downloading file to:' , outputPath ) ;
91
93
const response = await axios ( { url, responseType : 'stream' } ) ;
94
+ console . log ( 'Downloading file...' ) ;
92
95
response . data . pipe ( writer ) ;
96
+ console . log ( 'Downloaded file' ) ;
93
97
return new Promise ( ( resolve , reject ) => {
94
98
writer . on ( 'finish' , resolve ) ;
95
99
writer . on ( 'error' , reject ) ;
@@ -103,6 +107,7 @@ export class CxInstaller {
103
107
} else {
104
108
executablePath = path . join ( this . resourceDirPath , 'cx.tar.gz' ) ;
105
109
}
110
+ console . log ( 'Zip path:' , executablePath )
106
111
return executablePath ;
107
112
}
108
113
You can’t perform that action at this time.
0 commit comments