Skip to content

Commit ebe89d3

Browse files
committed
fix using gzip
1 parent a4f2b4a commit ebe89d3

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.pipelines/DSC-Official.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ extends:
146146
- pwsh: |
147147
Set-Location "$(Build.SourcesDirectory)/DSC"
148148
Write-Host "Use 'powershell' CFS"
149-
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
150-
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
149+
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
150+
#Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
151151
./build.ps1 -Release -Architecture $(buildName) -SkipLinkCheck
152152
displayName: 'Build $(buildName)'
153153
env:
@@ -283,8 +283,8 @@ extends:
283283
ob_restore_phase: true
284284
- pwsh: |
285285
Write-Host "Use 'powershell' CFS"
286-
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
287-
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
286+
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
287+
#Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
288288
./build.ps1 -Release -Architecture x86_64-unknown-linux-gnu
289289
./build.ps1 -PackageType tgz -Architecture x86_64-unknown-linux-gnu -Release
290290
Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"
@@ -330,8 +330,8 @@ extends:
330330
ob_restore_phase: true
331331
- pwsh: |
332332
Write-Host "Use 'powershell' CFS"
333-
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
334-
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
333+
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
334+
#Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
335335
./build.ps1 -Release -Architecture aarch64-unknown-linux-gnu
336336
./build.ps1 -PackageType tgz -Architecture aarch64-unknown-linux-gnu -Release
337337
Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"
@@ -385,8 +385,8 @@ extends:
385385
ob_restore_phase: true
386386
- pwsh: |
387387
Write-Host "Use 'powershell' CFS"
388-
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
389-
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
388+
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
389+
#Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
390390
./build.ps1 -Release -Architecture $(buildName)
391391
./build.ps1 -PackageType tgz -Architecture $(buildName) -Release
392392
Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"

build.ps1

+7-3
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,14 @@ if ($packageType -eq 'msixbundle') {
568568
}
569569
}
570570

571-
$packageName = "DSC-$productVersion-$architecture.tar.gz"
572-
$tgzFile = Join-Path $PSScriptRoot 'bin' $packageName
571+
$packageName = "DSC-$productVersion-$architecture.tar"
572+
$tarFile = Join-Path $PSScriptRoot 'bin' $packageName
573573
tar cvf $tgzFile -C $tgzTarget .
574-
Write-Host -ForegroundColor Green "`nTgz file is created at $tgzFile"
574+
Write-Host -ForegroundColor Green "`nTar file is created at $tarFile"
575+
576+
$gzFile = "$tarFile.gz"
577+
gzip -c $tarFile > $gzFile
578+
Write-Host -ForegroundColor Green "`nGz file is created at $gzFile"
575579
}
576580

577581
$env:RUST_BACKTRACE=1

0 commit comments

Comments
 (0)