Skip to content

Commit 04ce9f1

Browse files
committed
add test to validate tgz
1 parent cec3ebf commit 04ce9f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,13 @@ if ($packageType -eq 'msixbundle') {
696696
if ($LASTEXITCODE -ne 0) {
697697
throw "Failed to create tar.gz file"
698698
}
699+
700+
# check it's valid
701+
$out = file $tarFile
702+
if ($out -notmatch 'gzip compressed data') {
703+
throw "Invalid tar.gz file"
704+
}
705+
699706
Write-Host -ForegroundColor Green "`ntar.gz file is created at $tarFile"
700707
}
701708

0 commit comments

Comments
 (0)