w
This commit is contained in:
@@ -40,8 +40,8 @@ class NixNodeBuilder : NodeBuilder {
|
||||
return "${base}/v$($this.Version)/node-v$($this.Version)-$($this.Platform)-$($this.Architecture).tar.gz"
|
||||
}
|
||||
|
||||
[void] UnpackBinaries($archivePath) {
|
||||
Unpack-TarArchive -ArchivePath $archivePath -OutputDirectory $this.ArtifactLocation
|
||||
[void] ExtractBinaries($archivePath) {
|
||||
Extract-TarArchive -ArchivePath $archivePath -OutputDirectory $this.ArtifactLocation
|
||||
}
|
||||
|
||||
[void] CreateInstallationScript() {
|
||||
|
||||
@@ -85,7 +85,7 @@ class NodeBuilder {
|
||||
$binariesArchivePath = $this.Download()
|
||||
|
||||
Write-Host "Unpack binaries to target directory"
|
||||
$this.UnpackBinaries($binariesArchivePath)
|
||||
$this.ExtractBinaries($binariesArchivePath)
|
||||
|
||||
Write-Host "Create installation script..."
|
||||
$this.CreateInstallationScript()
|
||||
|
||||
@@ -40,8 +40,8 @@ class WinNodeBuilder : NodeBuilder {
|
||||
return "${base}/v$($this.Version)/node-v$($this.Version)-win-$($this.Architecture).7z"
|
||||
}
|
||||
|
||||
[void] UnpackBinaries($archivePath) {
|
||||
Unpack-7ZipArchive -ArchivePath $archivePath -OutputDirectory $this.ArtifactLocation
|
||||
[void] ExtractBinaries($archivePath) {
|
||||
Extract-7ZipArchive -ArchivePath $archivePath -OutputDirectory $this.ArtifactLocation
|
||||
}
|
||||
|
||||
[void] CreateInstallationScript() {
|
||||
|
||||
Reference in New Issue
Block a user