File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -689,20 +689,14 @@ if ($packageType -eq 'msixbundle') {
689689 $architecture
690690 }
691691
692- $packageName = " DSC-$productVersion -$productArchitecture .tar"
692+ Write-Verbose - Verbose " Creating tar.gz file"
693+ $packageName = " DSC-$productVersion -$productArchitecture .tar.gz"
693694 $tarFile = Join-Path $PSScriptRoot ' bin' $packageName
694- tar cvf $tarFile - C $tgzTarget .
695+ tar - czvf $tarFile - C $tgzTarget .
695696 if ($LASTEXITCODE -ne 0 ) {
696- throw " Failed to create tar file"
697+ throw " Failed to create tar.gz file"
697698 }
698- Write-Host - ForegroundColor Green " `n Tar file is created at $tarFile "
699-
700- $gzFile = " $tarFile .gz"
701- gzip - c $tarFile > $gzFile
702- if ($LASTEXITCODE -ne 0 ) {
703- throw " Failed to create gz file"
704- }
705- Write-Host - ForegroundColor Green " `n Gz file is created at $gzFile "
699+ Write-Host - ForegroundColor Green " `n tar.gz file is created at $tarFile "
706700}
707701
708702$env: RUST_BACKTRACE = 1
You can’t perform that action at this time.
0 commit comments