Skip to content

Commit 353d79e

Browse files
committed
Update ext.yml
1 parent 207737c commit 353d79e

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/ext.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,29 @@ jobs:
608608
Write-Host "❌ Failed: $failCount extensions" -ForegroundColor $(if ($failCount -gt 0) { 'Red' } else { 'Green' })
609609
Write-Host ""
610610
611+
- name: 🔧 Configure delegates.xml
612+
shell: pwsh
613+
run: |
614+
$target = "${{ steps.toolset.outputs.target }}"
615+
$phpVersion = "${{ matrix.php }}"
616+
$tsMode = "${{ matrix.ts }}".ToUpper()
617+
618+
Write-Host "🔧 Configuring delegates.xml for PHP $phpVersion ($tsMode)..." -ForegroundColor Cyan
619+
620+
$delegatesPath = Join-Path $target "config\delegates.xml"
621+
622+
if (Test-Path $delegatesPath) {
623+
Write-Host "📝 Found delegates.xml, updating PSDelegate references..." -ForegroundColor Yellow
624+
625+
$content = Get-Content $delegatesPath -Raw -Encoding UTF8
626+
$updatedContent = $content -replace '@PSDelegate@', 'gswin64c.exe'
627+
Set-Content $delegatesPath $updatedContent -Encoding UTF8
628+
629+
Write-Host "✅ Updated delegates.xml: @PSDelegate@ -> gswin64c.exe" -ForegroundColor Green
630+
} else {
631+
Write-Host "⚠️ delegates.xml not found at: $delegatesPath" -ForegroundColor Yellow
632+
}
633+
611634
- name: 📦 Pack final result
612635
id: pack
613636
shell: pwsh
@@ -761,4 +784,4 @@ jobs:
761784
echo "📊 Release: ${{ needs.generate-matrix.outputs.release-tag }}"
762785
echo "⏰ Completion time: $(date)"
763786
echo ""
764-
echo "🚀 Extension packs are now available for download!"
787+
echo "🚀 Extension packs are now available for download!"

0 commit comments

Comments
 (0)