Get rid of nested archive #4

Merged
maxim-lobanov merged 9 commits from v-malob/switch-layout into master 2020-04-23 13:54:32 +05:00
Showing only changes of commit 9f20e91066 - Show all commits

View File

@@ -83,11 +83,9 @@ class NodeBuilder {
Write-Host "Download Node.js $($this.Version) [$($this.Architecture)] executable..." Write-Host "Download Node.js $($this.Version) [$($this.Architecture)] executable..."
$binariesArchivePath = $this.Download() $binariesArchivePath = $this.Download()
$binariesArchiveDirectory = [IO.Path]::GetDirectoryName($binariesArchivePath)
$toolArchivePath = Join-Path $binariesArchiveDirectory $this.OutputArtifactName
Write-Host "Rename '$binariesArchivePath' to '$toolArchivePath'" Write-Host "Unpack binaries to target directory"
Rename-Item -Path $binariesArchivePath -NewName $toolArchivePath $this.UnpackBinaries($binariesArchivePath)
Write-Host "Create installation script..." Write-Host "Create installation script..."
$this.CreateInstallationScript() $this.CreateInstallationScript()