provato ad aggiustare pipeline windows
Some checks failed
Build and Release FLUX Windows / build (push) Failing after 49s
Some checks failed
Build and Release FLUX Windows / build (push) Failing after 49s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user