using dep override pdfx da github
Some checks failed
Build and Release FLUX Windows / build (push) Has been cancelled

This commit is contained in:
2026-05-22 11:06:19 +02:00
parent 813fc9dd38
commit 4b9cbf65f9
3 changed files with 12 additions and 36 deletions

View File

@@ -11,39 +11,7 @@ jobs:
- name: Checkout del codice
uses: actions/checkout@v3
# 1. Pre-build per generare i symlink (Fallirà apposta)
- name: Pre-build per generare l'ambiente
continue-on-error: true
run: flutter build windows --release
# 2. Il Fix Definitivo con .NET
- name: Fix bug CMake di pdfx (Patcha la vera Pub Cache)
run: |
$file = "windows\flutter\ephemeral\.plugin_symlinks\pdfx\windows\DownloadProject.cmake"
if (Test-Path $file) {
# Usiamo [IO.File] del .NET Framework!
# Questo segue il symlink in modo trasparente e modifica il VERO file originale nella Pub Cache.
$text = [IO.File]::ReadAllText($file)
$text = $text.Replace("VERSION 2.8.2", "VERSION 3.5")
[IO.File]::WriteAllText($file, $text)
Write-Host "Il VERO file nella Pub Cache è stato patchato in modo permanente!"
} else {
Write-Error "File non trovato. La pre-build non ha generato i symlink."
exit 1
}
# 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
env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
run: flutter build windows --release
- name: Compila Installer Inno Setup

View File

@@ -752,10 +752,11 @@ packages:
pdfx:
dependency: "direct main"
description:
name: pdfx
sha256: "29db9b71d46bf2335e001f91693f2c3fbbf0760e4c2eb596bf4bafab211471c1"
url: "https://pub.dev"
source: hosted
path: "packages/pdfx"
ref: main
resolved-ref: "900ad0799ebd12d6c87189275fcb6155ce8a9374"
url: "https://github.com/ScerIO/packages.flutter.git"
source: git
version: "2.9.2"
permission_handler:
dependency: "direct main"

View File

@@ -40,6 +40,13 @@ dependencies:
package_info_plus: ^9.0.1
flutter_staggered_grid_view: ^0.7.0
dependency_overrides:
pdfx:
git:
url: https://github.com/ScerIO/packages.flutter.git
ref: main
path: packages/pdfx
dev_dependencies:
flutter_test:
sdk: flutter