@@ -205,18 +205,18 @@ function acquireNodeFromFallbackLocation(version) {
205205 exeUrl = `https://nodejs.org/dist/v${ version } /win-${ os . arch ( ) } /node.exe` ;
206206 libUrl = `https://nodejs.org/dist/v${ version } /win-${ os . arch ( ) } /node.lib` ;
207207 const exePath = yield tc . downloadTool ( exeUrl ) ;
208- yield io . mv ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
208+ yield io . cp ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
209209 const libPath = yield tc . downloadTool ( libUrl ) ;
210- yield io . mv ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
210+ yield io . cp ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
211211 }
212212 catch ( err ) {
213213 if ( err instanceof tc . HTTPError && err . httpStatusCode == 404 ) {
214214 exeUrl = `https://nodejs.org/dist/v${ version } /node.exe` ;
215215 libUrl = `https://nodejs.org/dist/v${ version } /node.lib` ;
216216 const exePath = yield tc . downloadTool ( exeUrl ) ;
217- yield io . mv ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
217+ yield io . cp ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
218218 const libPath = yield tc . downloadTool ( libUrl ) ;
219- yield io . mv ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
219+ yield io . cp ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
220220 }
221221 else {
222222 throw err ;
0 commit comments