We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a64b2c + 28dcfa1 commit acec004Copy full SHA for acec004
installers/win-setup-template.ps1
@@ -2,8 +2,6 @@ $ErrorActionPreference = "Stop"
2
3
[Version]$Version = "{{__VERSION__}}"
4
[string]$Architecture = "{{__ARCHITECTURE__}}"
5
-$ArchiveFileName = "tool.7z"
6
-$TempDirectory = Join-Path $env:TEMP "Node"
7
8
$ToolcacheRoot = $env:AGENT_TOOLSDIRECTORY
9
if ([string]::IsNullOrEmpty($ToolcacheRoot)) {
@@ -30,7 +28,7 @@ if (-not (Test-Path $NodeToolcacheArchitecturePath)) {
30
28
}
31
29
32
Write-Host "Copy Node.js binaries to hostedtoolcache folder"
33
-Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath
+Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath -Recurse
34
Remove-Item $NodeToolcacheArchitecturePath\setup.ps1 -Force | Out-Null
35
36
Write-Host "Create complete file"
0 commit comments