diff --git a/ck.ps1 b/ck.ps1 index 14a53ca..78e66bd 100644 --- a/ck.ps1 +++ b/ck.ps1 @@ -97,7 +97,7 @@ function Invoke-FetchSources { Remove-Item -LiteralPath $Src -Recurse -Force } New-Item -ItemType Directory -Force -Path $Src | Out-Null - & tar.exe -xzf $tarball -C $Src --strip-components=1 + & "$env:SystemRoot\System32\tar.exe" -xzf $tarball -C $Src --strip-components=1 if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } Write-Host "sources in $Src" } @@ -162,7 +162,7 @@ function Invoke-Publish { $zipName = "chicken-$UpstreamVersion-ucrt64-x86_64.zip" $zip = Join-Path $Dist $zipName if (Test-Path -LiteralPath $zip) { Remove-Item -LiteralPath $zip -Force } - & tar.exe -a -cf $zip -C $Prefix . + & "$env:SystemRoot\System32\tar.exe" -a -cf $zip -C $Prefix . if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } $tag = "$UpstreamVersion-win$(Get-Revision)"