Switch packages for Ubuntu & macOS to use tar.gz format instead of zip #6
@@ -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)'
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user