@@ -172,7 +172,7 @@ jobs:
172172 curl.exe -L -o "python-3-embed.tar.gz" $env:python_source
173173
174174 $expectedHash = $env:python_sha256
175- $actualHash = (Get-FileHash -Path "python-3-embed.tar.gz" -Algorithm SHA256).Hash.ToLower() $actualHash = $hashObject.Hash.ToLower()
175+ $actualHash = (Get-FileHash -Path "python-3-embed.tar.gz" -Algorithm SHA256).Hash.ToLower()
176176 if ($actualHash -ne $expectedHash.ToLower()) {
177177 Write-Error "SHA mismatch: Actual $actualHash doesn't match $expectedHash"
178178 exit 1
@@ -219,16 +219,6 @@ jobs:
219219 Write-Host "Downloading Pandoc from $env:pandoc_source"
220220 curl.exe -L -o $pandocZipPath $env:pandoc_source
221221
222- Expand-Archive -Path $pandocZipPath -DestinationPath $tempDir -Force
223- New-Item -ItemType Directory -Path $targetDir -Force | Out-Null
224-
225- Write-Output "Copying pandoc.exe to $targetDir"
226- Copy-Item -Path (Join-Path $tempDir "pandoc-3.1.9\pandoc.exe") -Destination $targetDir -Force
227-
228- # Optional: Verify the contents
229- Write-Output "Listing contents of $targetDir"
230- Get-ChildItem -Path $targetDir
231-
232222 $expectedHash = $env:pandoc_sha256.ToLower()
233223 $actualHash = (Get-FileHash -Path $pandocZipPath -Algorithm SHA256).Hash.ToLower()
234224
@@ -237,6 +227,15 @@ jobs:
237227 exit 1
238228 } else { Write-Output "Pandoc SHA ok" }
239229
230+ Expand-Archive -Path $pandocZipPath -DestinationPath $tempDir -Force
231+ New-Item -ItemType Directory -Path $targetDir -Force | Out-Null
232+
233+ Write-Output "Copying pandoc.exe to $targetDir"
234+ Copy-Item -Path (Join-Path $tempDir "pandoc-3.1.9\pandoc.exe") -Destination $targetDir -Force
235+
236+ Write-Output "Showing the content of $targetDir"
237+ Get-ChildItem -Path $targetDir
238+
240239 Write-Output "Cleaning up temporary files..."
241240 Remove-Item -Path $tempDir -Recurse -Force
242241 Remove-Item -Path $pandocZipPath -Force
@@ -311,7 +310,6 @@ jobs:
311310 & "$env:build_location\python\python.exe" -X utf8 -c "from wppm import wheelhouse as wh; wh.pylock_to_req(r'$destfile_pylockwheel', r'$outreqwheel')"
312311 Copy-Item -Path $outreqwheel -Destination (Join-Path $env:build_location "wheelhouse") -Force
313312 Copy-Item -Path $destfile_pylockwheel -Destination (Join-Path $env:build_location "wheelhouse") -Force
314-
315313 }
316314
317315 -name :Zip the result
@@ -347,7 +345,6 @@ jobs:
347345 & "$env:build_location\python\python.exe" -c "import sys;from wppm import hash; hash.print_hashes(sys.argv[1:])" @($filesToHash.FullName) | Out-File -FilePath $DESTFILE
348346 gc $DESTFILE
349347
350- # Example artifact upload step (optional)
351348 -name :Upload artifacts
352349if :env.WINPYREQUIREMENTS != ''
353350uses :actions/upload-artifact@v4