Call Windows tar so unpack does not treat the drive letter as a host.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4
ck.ps1
4
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)"
|
||||
|
||||
Reference in New Issue
Block a user