From 11310502f870cdf99aeffca587f6e033a72443f9 Mon Sep 17 00:00:00 2001 From: Pavel Kulyov Date: Fri, 9 Oct 2026 01:10:40 +0300 Subject: [PATCH] Call Windows tar so unpack does not treat the drive letter as a host. Co-authored-by: Cursor --- ck.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)"