using dep override pdfx da github
Some checks failed
Build and Release FLUX Windows / build (push) Has been cancelled
Some checks failed
Build and Release FLUX Windows / build (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user