From f1b9e35b0921c368b647b45e8fe5c5e6f68597f9 Mon Sep 17 00:00:00 2001 From: haosicheng Date: Thu, 30 Oct 2025 12:01:58 +0800 Subject: [PATCH] =?UTF-8?q?[patch]=20=E5=A4=84=E7=90=86DY=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=8C=85=E6=89=93=E5=8C=85=E5=90=8E=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=9A=82=E5=AD=98=E8=B7=AF=E5=BE=84=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=20=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=BC=96=E7=A0=81=E9=97=AE=E9=A2=98=20=E5=A4=84?= =?UTF-8?q?=E7=90=86js=E5=86=85=E7=BD=AE=E7=8E=AF=E5=A2=83dll=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gui-version-release.yml | 7 +++++++ build_production.py | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index ff9b78b..411e220 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -78,6 +78,13 @@ jobs: exit 1 } + pip install py-mini-racer + if ($LASTEXITCODE -ne 0) { + Write-Host "WARNING: Failed to install py-mini-racer (DY platform may not work)" + } else { + Write-Host "OK: py-mini-racer installed" + } + Write-Host "Dependencies installed successfully" # Step 4: Create GUI version record diff --git a/build_production.py b/build_production.py index 58a1912..d02a85f 100644 --- a/build_production.py +++ b/build_production.py @@ -121,6 +121,17 @@ def main(): print(f"Main executable: main.exe ({size:.1f} MB)") else: print("WARNING: Main executable not found") + + # 🔥 关键修复:添加PyMiniRacer DLL修复步骤 + print("\nPyMiniRacer DLL fix phase started...") + try: + import fix_pyminiracer_dll + if fix_pyminiracer_dll.auto_fix_after_build(): + print("PyMiniRacer DLL fix completed") + else: + print("WARNING: PyMiniRacer DLL fix failed") + except Exception as e: + print(f"WARNING: PyMiniRacer DLL fix error: {e}") else: print("\nERROR: Output directory verification failed - dist/MultiPlatformGUI not found") else: