@@ -208,42 +208,14 @@ jobs:
208208 $rccInput = "src/Res/resources.qrc"
209209 $rccOutput = "GeneratedFiles/qrc_resources.cpp"
210210 if (Test-Path $rccInput) {
211- Write-Host "RCC Input: $rccInput"
212- Write-Host "RCC Output: $rccOutput"
213- Write-Host "Current directory: $(Get-Location)"
214-
215- Write-Host "Verifying resource files..."
216- $qrcContent = Get-Content $rccInput -Raw
217- if ($qrcContent -match '<file>(.*?)</file>') {
218- $resourceFiles = [regex]::Matches($qrcContent, '<file>(.*?)</file>') | ForEach-Object { $_.Groups[1].Value }
219- $qrcDir = Split-Path (Resolve-Path $rccInput) -Parent
220- foreach ($resFile in $resourceFiles) {
221- $fullPath = Join-Path $qrcDir $resFile
222- $fullPath = [System.IO.Path]::GetFullPath($fullPath)
223- if (Test-Path $fullPath) {
224- Write-Host " Found: $resFile"
225- } else {
226- Write-Host " WARNING: Missing resource file: $resFile (expected at: $fullPath)"
227- }
228- }
229- }
230-
231211 & $rccPath -name resources $rccInput -o $rccOutput
232212 if ($LASTEXITCODE -eq 0) {
233213 Write-Host "Successfully generated RCC file: $rccOutput"
234- if (Test-Path $rccOutput) {
235- $fileSize = (Get-Item $rccOutput).Length
236- Write-Host "RCC file size: $fileSize bytes"
237- }
238214 } else {
239215 Write-Host "RCC generation failed with exit code: $LASTEXITCODE"
240- Write-Host "RCC command: $rccPath -name resources $rccInput -o $rccOutput"
241216 }
242217 } else {
243218 Write-Host "RCC input file not found: $rccInput"
244- Write-Host "Current directory: $(Get-Location)"
245- Write-Host "Files in current directory:"
246- Get-ChildItem -Recurse -Filter "resources.qrc" | ForEach-Object { Write-Host " Found: $($_.FullName)" }
247219 }
248220 } else {
249221 Write-Host "RCC tool not found, skipping resource compilation"
0 commit comments