From da24b6a5ed9c676cc0e96bcc3d59bcadb0d09259 Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 14:15:49 +0200 Subject: [PATCH 01/10] impostato per auto build & release windows sul pc bancone --- .gitea/workflows/release.yaml | 35 +++++++++++++++++++++++++++++++++++ win_installer.iss | 6 +++--- 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..8b180c4 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,35 @@ +name: Build and Release FLUX Windows +on: + push: + tags: + - 'v*' # Si attiva solo quando crei un tag tipo v1.0.0 + +jobs: + build: + runs-on: windows-native # Richiama esattamente l'etichetta del PC del collega + steps: + - name: Checkout del codice + uses: actions/checkout@v3 + + # Presuppone che Flutter e InnoSetup siano già nel PATH del PC Windows + - name: Build Flutter + env: + # Limita la compilazione a soli 2 processi paralleli + CMAKE_BUILD_PARALLEL_LEVEL: 2 + run: flutter build windows --release + + - name: Compila Installer Inno Setup + run: | + # Recupera il nome del tag (es. "v1.0.5") ed elimina la prima lettera "v" + $TagVersion = "${{ gitea.ref_name }}".Substring(1) + "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DMyAppVersion=$TagVersion "win_installer.iss" + + # Usa un'action standard per caricare il file su Gitea Releases + - name: Upload Release Asset + uses: https://gitea.com/actions/release-action@main + with: + files: "build/windows/installer/FLUX_Setup_x64.exe" + api_key: ${{ secrets.GITEA_TOKEN }} + - name: Pulisci Workspace + if: always() # Esegue questo step anche se la build fallisce + run: Remove-Item -Recurse -Force ./* \ No newline at end of file diff --git a/win_installer.iss b/win_installer.iss index 5f627ac..9bf22d5 100644 --- a/win_installer.iss +++ b/win_installer.iss @@ -1,15 +1,15 @@ [Setup] ; Informazioni di base dell'applicazione AppName=Flux -AppVersion=1.0.0 -VersionInfoVersion=1.0.0 +AppVersion={#MyAppVersion} +VersionInfoVersion={#MyAppVersion} AppPublisher=Catelli DefaultDirName={autopf}\Flux ; DefaultGroupName=Programs ; Cartella di output dell'installer e nome del file generato OutputDir=.\build\windows\installer -OutputBaseFilename=FluxInstaller +OutputBaseFilename=FLUX_Setup_v{#MyAppVersion} ; Compressione e impostazioni grafiche Compression=lzma2/max From c3268012a5819968997cd3fb0067c26a8b9e122a Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 14:24:49 +0200 Subject: [PATCH 02/10] prova auto build --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index f1dbb42..e2bf419 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flux description: "Gestione attività negozio di telefonia" publish_to: 'none' -version: 1.0.1+2 +version: 1.0.2+3 environment: sdk: ^3.11.3 From d1ee6d8a10722d43cff4f65ff2c81340b6c2bddd Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 15:58:04 +0200 Subject: [PATCH 03/10] a --- .gitea/workflows/release.yaml | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 8b180c4..76475a8 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: windows-native # Richiama esattamente l'etichetta del PC del collega + runs-on: windows-native:host # Richiama esattamente l'etichetta del PC del collega steps: - name: Checkout del codice uses: actions/checkout@v3 diff --git a/pubspec.yaml b/pubspec.yaml index e2bf419..877ccd0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flux description: "Gestione attività negozio di telefonia" publish_to: 'none' -version: 1.0.2+3 +version: 1.0.3+4 environment: sdk: ^3.11.3 From 862719b8b01ed705fb399a71fa28127f16994b72 Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 16:12:32 +0200 Subject: [PATCH 04/10] fd --- .gitea/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 76475a8..8b180c4 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: windows-native:host # Richiama esattamente l'etichetta del PC del collega + runs-on: windows-native # Richiama esattamente l'etichetta del PC del collega steps: - name: Checkout del codice uses: actions/checkout@v3 From a8ebb1dadad30c6cf88727a0f8550d1a28e53fda Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 16:13:35 +0200 Subject: [PATCH 05/10] df --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 877ccd0..fd04860 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flux description: "Gestione attività negozio di telefonia" publish_to: 'none' -version: 1.0.3+4 +version: 1.0.4+5 environment: sdk: ^3.11.3 From 5f16ee2b38a90a6f4a71a04b7a3e6297815ae01b Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 16:38:21 +0200 Subject: [PATCH 06/10] r --- .gitea/workflows/release.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 8b180c4..5aac678 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -11,6 +11,20 @@ jobs: - name: Checkout del codice uses: actions/checkout@v3 + - name: Fix bug CMake di pdfx + run: | + # Scarica i pacchetti e genera la cartella symlinks + flutter pub get + + # Percorso del file incriminato + $cmakeFile = "windows\flutter\ephemeral\.plugin_symlinks\pdfx\windows\DownloadProject.cmake" + + # Sostituisce la versione vecchia con la 3.5 al volo + if (Test-Path $cmakeFile) { + (Get-Content $cmakeFile) -replace 'VERSION 2.8.2', 'VERSION 3.5' | Set-Content $cmakeFile + Write-Host "File CMake patchato con successo!" + } + # Presuppone che Flutter e InnoSetup siano già nel PATH del PC Windows - name: Build Flutter env: From 61959a5a2ec55faf67e9ca78dd56b7b56d44a258 Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 16:41:23 +0200 Subject: [PATCH 07/10] v --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index fd04860..89a7529 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flux description: "Gestione attività negozio di telefonia" publish_to: 'none' -version: 1.0.4+5 +version: 1.0.5+6 environment: sdk: ^3.11.3 From 3a43b2672ac3b86f2bcc351507a67c4e0abc9fff Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 16:48:00 +0200 Subject: [PATCH 08/10] v --- .gitea/workflows/release.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 5aac678..e375070 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -11,30 +11,33 @@ jobs: - name: Checkout del codice uses: actions/checkout@v3 + # 1. Facciamo una build finta. Genererà i symlinks e poi fallirà per il bug, + # ma il 'continue-on-error' dirà a Gitea di ignorare l'errore e andare avanti. + - name: Pre-build per generare l'ambiente (Fallirà apposta) + continue-on-error: true + run: flutter build windows --release + + # 2. Ora la cartella ephemeral esiste! Applichiamo il fix. - name: Fix bug CMake di pdfx run: | - # Scarica i pacchetti e genera la cartella symlinks - flutter pub get - - # Percorso del file incriminato $cmakeFile = "windows\flutter\ephemeral\.plugin_symlinks\pdfx\windows\DownloadProject.cmake" - # Sostituisce la versione vecchia con la 3.5 al volo if (Test-Path $cmakeFile) { (Get-Content $cmakeFile) -replace 'VERSION 2.8.2', 'VERSION 3.5' | Set-Content $cmakeFile - Write-Host "File CMake patchato con successo!" + Write-Host "Il cerotto CMake è stato applicato con successo!" + } else { + Write-Error "File non trovato. La pre-build non ha generato i symlink." + exit 1 } - # Presuppone che Flutter e InnoSetup siano già nel PATH del PC Windows - - name: Build Flutter + # 3. Ora che il file è corretto, la build vera arriverà fino in fondo + - name: Build Flutter Definitiva env: - # Limita la compilazione a soli 2 processi paralleli CMAKE_BUILD_PARALLEL_LEVEL: 2 run: flutter build windows --release - name: Compila Installer Inno Setup run: | - # Recupera il nome del tag (es. "v1.0.5") ed elimina la prima lettera "v" $TagVersion = "${{ gitea.ref_name }}".Substring(1) "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DMyAppVersion=$TagVersion "win_installer.iss" From f520a0222696f0019796e4651d6b8c372a3896ba Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 16:48:09 +0200 Subject: [PATCH 09/10] v --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 89a7529..16a53c9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flux description: "Gestione attività negozio di telefonia" publish_to: 'none' -version: 1.0.5+6 +version: 1.0.6+6 environment: sdk: ^3.11.3 From 6fbc5d947cff49beaf55423c5eb5b738621d3c61 Mon Sep 17 00:00:00 2001 From: mark-cachy Date: Wed, 20 May 2026 17:21:11 +0200 Subject: [PATCH 10/10] df --- windows/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 8ffeb44..9801046 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -106,3 +106,6 @@ install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" CONFIGURATIONS Profile;Release COMPONENT Runtime) + + +set(PDFIUM_VERSION "4638" CACHE STRING "") \ No newline at end of file