provato ad aggiustare pipeline windows
Some checks failed
Build and Release FLUX Windows / build (push) Failing after 49s

This commit is contained in:
2026-05-22 10:35:52 +02:00
parent 2fac3117a4
commit f574d6197b

View File

@@ -17,14 +17,21 @@ jobs:
continue-on-error: true
run: flutter build windows --release
# 2. Ora la cartella ephemeral esiste! Applichiamo il fix.
# 2. Ora la cartella ephemeral esiste! Applichiamo il fix e pialliamo la cache.
- name: Fix bug CMake di pdfx
run: |
$cmakeFile = "windows\flutter\ephemeral\.plugin_symlinks\pdfx\windows\DownloadProject.cmake"
if (Test-Path $cmakeFile) {
# 1. Applichiamo il cerotto
(Get-Content $cmakeFile) -replace 'VERSION 2.8.2', 'VERSION 3.5' | Set-Content $cmakeFile
Write-Host "Il cerotto CMake è stato applicato con successo!"
# 2. LA MAGIA: Pialliamo la cache di CMake generata dalla build fallita!
if (Test-Path "build\windows") {
Remove-Item -Recurse -Force "build\windows"
Write-Host "Cache CMake eliminata. Pronti per la build pulita."
}
} else {
Write-Error "File non trovato. La pre-build non ha generato i symlink."
exit 1