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 {
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
You can’t perform that action at this time.
0 commit comments