From e1cfd460f985ff202f536196a84193c9e14ccd1b Mon Sep 17 00:00:00 2001 From: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com> Date: Mon, 12 May 2025 19:00:27 +0100 Subject: [PATCH] WIP --- .github/build_windows_packages.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/build_windows_packages.ps1 b/.github/build_windows_packages.ps1 index d366c7b7..9801d30a 100644 --- a/.github/build_windows_packages.ps1 +++ b/.github/build_windows_packages.ps1 @@ -21,7 +21,7 @@ Write-Host "[INFO] Cleaning .git..." Remove-Item "$srcDir\.git" -Recurse -Force -ErrorAction SilentlyContinue Write-Host "[INFO] Creating tmp dir..." -New-Item -ItemType Directory -Force -Path $tmpDir | Out-Null +New-Item -ItemType Directory -Force -Path $tmpDir Write-Host "[INFO] Downloading Python..." $zst = "$tmpDir\python.tar.zst" @@ -98,12 +98,11 @@ Expand-Archive -Path $nltkZip -DestinationPath $prefix -Force Remove-Item $nltkZip Invoke-WebRequest -Uri $JTALK_URL -OutFile $jtalkTar -& "C:\Program Files\7-Zip\7z.exe" x $jtalkTar -o$tmpDir\jtalk -aoa -$innerTar = Get-ChildItem "$tmpDir\jtalk" -Filter "*.tar" | Select-Object -First 1 +& "C:\Program Files\7-Zip\7z.exe" e $jtalkTar -o"$tmpDir" -aoa +$innerTar = Get-ChildItem "$tmpDir" -Filter "*.tar" | Select-Object -First 1 & "C:\Program Files\7-Zip\7z.exe" x $innerTar.FullName -o"$jtalkPath" -aoa - Remove-Item $jtalkTar -Remove-Item "$tmpDir\jtalk" -Recurse -Force +Remove-Item $innerTar.FullName Write-Host "[INFO] Preparing final directory..." Copy-Item "$srcDir\*" -Destination $pkgName -Recurse -Force