Switch packages for Ubuntu & macOS to use tar.gz format instead of zip #6

Merged
maxim-lobanov merged 7 commits from v-malob/switch-to-tar-gz into master 2020-04-23 20:42:49 +05:00
3 changed files with 7 additions and 3 deletions
Showing only changes of commit 59d4db4007 - Show all commits

View File

@@ -34,6 +34,8 @@ jobs:
inputs: inputs:
targetType: inline targetType: inline
script: | script: |
$pwd
Get-ChildItem
if ("$(Platform)" -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh } if ("$(Platform)" -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh }
workingDirectory: '$(Build.BinariesDirectory)' workingDirectory: '$(Build.BinariesDirectory)'

View File

@@ -25,6 +25,8 @@ function Create-TarArchive {
$CompressionTypeArgument = If ([string]::IsNullOrWhiteSpace($CompressionType)) { "" } else { "--${CompressionType}" } $CompressionTypeArgument = If ([string]::IsNullOrWhiteSpace($CompressionType)) { "" } else { "--${CompressionType}" }
Write-Debug "tar -c $CompressionTypeArgument -f $ArchivePath $SourceFolder" Push-Location $SourceFolder
tar -c $CompressionTypeArgument -f $ArchivePath $SourceFolder Write-Debug "tar -c $CompressionTypeArgument -f $ArchivePath ."
tar -c $CompressionTypeArgument -f $ArchivePath .
Pop-Location
} }

View File

@@ -29,6 +29,6 @@ function Create-SevenZipArchive {
Push-Location $SourceFolder Push-Location $SourceFolder
Write-Debug "7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder" Write-Debug "7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder"
7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder 7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath $SourceFolder
Pop-Location Pop-Location
} }