prova
Some checks failed
Build and Release FLUX Windows / build (push) Failing after 26s

This commit is contained in:
2026-05-22 10:45:46 +02:00
parent f574d6197b
commit 813fc9dd38
2 changed files with 20 additions and 17 deletions

View File

@@ -11,33 +11,36 @@ jobs:
- name: Checkout del codice - name: Checkout del codice
uses: actions/checkout@v3 uses: actions/checkout@v3
# 1. Facciamo una build finta. Genererà i symlinks e poi fallirà per il bug, # 1. Pre-build per generare i symlink (Fallirà apposta)
# ma il 'continue-on-error' dirà a Gitea di ignorare l'errore e andare avanti. - name: Pre-build per generare l'ambiente
- name: Pre-build per generare l'ambiente (Fallirà apposta)
continue-on-error: true continue-on-error: true
run: flutter build windows --release run: flutter build windows --release
# 2. Ora la cartella ephemeral esiste! Applichiamo il fix e pialliamo la cache. # 2. Il Fix Definitivo con .NET
- name: Fix bug CMake di pdfx - name: Fix bug CMake di pdfx (Patcha la vera Pub Cache)
run: | run: |
$cmakeFile = "windows\flutter\ephemeral\.plugin_symlinks\pdfx\windows\DownloadProject.cmake" $file = "windows\flutter\ephemeral\.plugin_symlinks\pdfx\windows\DownloadProject.cmake"
if (Test-Path $cmakeFile) { if (Test-Path $file) {
# 1. Applichiamo il cerotto # Usiamo [IO.File] del .NET Framework!
(Get-Content $cmakeFile) -replace 'VERSION 2.8.2', 'VERSION 3.5' | Set-Content $cmakeFile # Questo segue il symlink in modo trasparente e modifica il VERO file originale nella Pub Cache.
Write-Host "Il cerotto CMake è stato applicato con successo!" $text = [IO.File]::ReadAllText($file)
$text = $text.Replace("VERSION 2.8.2", "VERSION 3.5")
[IO.File]::WriteAllText($file, $text)
# 2. LA MAGIA: Pialliamo la cache di CMake generata dalla build fallita! Write-Host "Il VERO file nella Pub Cache è stato patchato in modo permanente!"
if (Test-Path "build\windows") {
Remove-Item -Recurse -Force "build\windows"
Write-Host "Cache CMake eliminata. Pronti per la build pulita."
}
} else { } else {
Write-Error "File non trovato. La pre-build non ha generato i symlink." Write-Error "File non trovato. La pre-build non ha generato i symlink."
exit 1 exit 1
} }
# 3. Ora che il file è corretto, la build vera arriverà fino in fondo # Pialliamo la cache sporca di CMake del tentativo precedente
if (Test-Path "build\windows") {
Remove-Item -Recurse -Force "build\windows"
Write-Host "Cartella build sporca eliminata."
}
# 3. Ora la build vera non può fallire, perché il sorgente di pdfx è stato curato alla radice
- name: Build Flutter Definitiva - name: Build Flutter Definitiva
env: env:
CMAKE_BUILD_PARALLEL_LEVEL: 2 CMAKE_BUILD_PARALLEL_LEVEL: 2

View File

@@ -1,7 +1,7 @@
name: flux name: flux
description: "Gestione attività negozio di telefonia" description: "Gestione attività negozio di telefonia"
publish_to: 'none' publish_to: 'none'
version: 1.0.8+8 version: 1.0.9+9
environment: environment:
sdk: ^3.11.3 sdk: ^3.11.3