Defer Ghostscript runtime checks to final verification.

Keep fail-fast installation checks for Ghostscript command presence, but defer executing Ghostscript until the final verification phase where full runtime dependencies and PATH are in place.
This commit is contained in:
Vijay Janapa Reddi
2026-03-04 18:03:23 -05:00
parent 300457a013
commit 3fdae4a365
2 changed files with 3 additions and 12 deletions

View File

@@ -617,18 +617,14 @@ jobs:
Write-Output "📊 Ghostscript version:"
if (Get-Command gswin64c -ErrorAction SilentlyContinue) {
Write-Output "Resolved Ghostscript: $((Get-Command gswin64c).Source)"
gswin64c --version
Write-Output "✅ Ghostscript executable found (runtime check deferred to final verification)"
} elseif (Get-Command gs -ErrorAction SilentlyContinue) {
Write-Output "Resolved Ghostscript: $((Get-Command gs).Source)"
gs --version
Write-Output "✅ Ghostscript executable found (runtime check deferred to final verification)"
} else {
Write-Error "❌ Ghostscript executable not found (expected gswin64c or gs)"
exit 1
}
if ($LASTEXITCODE -ne 0) {
Write-Error "❌ Ghostscript verification failed with exit code $LASTEXITCODE"
exit 1
}
Write-Output "✅ Ghostscript installation complete"
- name: 📦 Install Visual C++ Redistributable (Windows)