@@ -19,10 +19,10 @@ class NodeBuilder {
19
19
The location of temporary files that will be used during Node.js package generation.
20
20
21
21
. PARAMETER WorkFolderLocation
22
- The location of installation files. Using environment BINARIES_DIRECTORY variable value.
22
+ The location of installation files.
23
23
24
24
. PARAMETER ArtifactFolderLocation
25
- The location of generated Node.js artifact. Using environment ARTIFACT_DIRECTORY variable value.
25
+ The location of generated Node.js artifact.
26
26
27
27
. PARAMETER InstallationTemplatesLocation
28
28
The location of installation script template. Using "installers" folder from current repository.
@@ -43,9 +43,8 @@ class NodeBuilder {
43
43
$this.Architecture = $architecture
44
44
45
45
$this.TempFolderLocation = [IO.Path ]::GetTempPath()
46
- $this.WorkFolderLocation = $env: BINARIES_DIRECTORY
47
- $this.ArtifactFolderLocation = $env: ARTIFACT_DIRECTORY
48
-
46
+ $this.WorkFolderLocation = Join-Path $env: RUNNER_TEMP " binaries"
47
+ $this.ArtifactFolderLocation = Join-Path $env: RUNNER_TEMP " artifact"
49
48
50
49
$this.InstallationTemplatesLocation = Join-Path - Path $PSScriptRoot - ChildPath " ../installers"
51
50
}
@@ -87,6 +86,10 @@ class NodeBuilder {
87
86
Generates Node.js artifact from downloaded binaries.
88
87
#>
89
88
89
+ Write-Host " Create WorkFolderLocation and ArtifactFolderLocation folders"
90
+ New-Item - Path $this.WorkFolderLocation - ItemType " directory"
91
+ New-Item - Path $this.ArtifactFolderLocation - ItemType " directory"
92
+
90
93
Write-Host " Download Node.js $ ( $this.Version ) [$ ( $this.Architecture ) ] executable..."
91
94
$binariesArchivePath = $this.Download ()
92
95
0 commit comments