Merge pull request #13 from actions/switch-to-7z-for-windows

Switch zip to 7z for windows
This commit is contained in:
Maxim Lobanov 2020-05-04 08:06:22 +03:00 committed by GitHub
commit 26e0d7c0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class WinNodeBuilder : NodeBuilder {
) : Base($version, $platform, $architecture) { ) : Base($version, $platform, $architecture) {
$this.InstallationTemplateName = "win-setup-template.ps1" $this.InstallationTemplateName = "win-setup-template.ps1"
$this.InstallationScriptName = "setup.ps1" $this.InstallationScriptName = "setup.ps1"
$this.OutputArtifactName = "node-$Version-$Platform-$Architecture.zip" $this.OutputArtifactName = "node-$Version-$Platform-$Architecture.7z"
} }
[uri] GetBinariesUri() { [uri] GetBinariesUri() {
@ -69,6 +69,6 @@ class WinNodeBuilder : NodeBuilder {
[void] ArchiveArtifact() { [void] ArchiveArtifact() {
$OutputPath = Join-Path $this.ArtifactFolderLocation $this.OutputArtifactName $OutputPath = Join-Path $this.ArtifactFolderLocation $this.OutputArtifactName
Create-SevenZipArchive -SourceFolder $this.WorkFolderLocation -ArchivePath $OutputPath Create-SevenZipArchive -SourceFolder $this.WorkFolderLocation -ArchivePath $OutputPath -ArchiveType "7z"
} }
} }