From 99446eca748e93c289012a8465a94e4ae7ca8961 Mon Sep 17 00:00:00 2001 From: Gitea Actions Bot Date: Sat, 11 Oct 2025 16:34:03 +0800 Subject: [PATCH] =?UTF-8?q?[patch]=20=E4=BF=AE=E6=AD=A3Pillow=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gui-version-release.yml | 24 ++++++++++++------------ config.py | 2 +- version_history.json | 16 ++++++++++++++++ 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index 5904bde..f8de82e 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -140,19 +140,19 @@ jobs: Write-Host "Step 4.5: Build production executable"; Write-Host "=========================================="; - # Install Pillow for icon conversion - Write-Host "Installing Pillow for icon conversion..."; - python -m pip install --upgrade pip; - python -m pip install Pillow; + # Ensure PyInstaller and Pillow are in the same Python environment + Write-Host "Installing dependencies..."; + python -m pip install --upgrade pip --quiet; + python -m pip install pyinstaller --upgrade --quiet; + python -m pip install Pillow --quiet; - # Verify Pillow installation - Write-Host "Verifying Pillow installation..."; - python -c "from PIL import Image; print('Pillow version:', Image.__version__)"; - if ($LASTEXITCODE -ne 0) { - Write-Host "ERROR: Pillow installation verification failed"; - exit 1; - } - Write-Host "Pillow installed successfully"; + # Verify installation + Write-Host "Python version:"; + python --version; + Write-Host "PyInstaller version:"; + python -m PyInstaller --version; + Write-Host "Pillow version:"; + python -c "from PIL import Image; print(Image.__version__)"; Write-Host ""; python build_production.py; diff --git a/config.py b/config.py index e27d6e0..17c731d 100644 --- a/config.py +++ b/config.py @@ -42,7 +42,7 @@ VERSION = "1.0" WINDOW_TITLE = "AI回复连接入口-V1.0" # 应用版本号(用于版本检查) -APP_VERSION = "1.5.8" +APP_VERSION = "1.5.9" # 平台特定配置 PLATFORMS = { diff --git a/version_history.json b/version_history.json index 45e4c31..934b5e4 100644 --- a/version_history.json +++ b/version_history.json @@ -1,4 +1,20 @@ [ + { + "version": "1.5.9", + "update_type": "patch", + "content": "[patch] 修正Pillow安装步骤", + "author": "Gitea Actions Bot", + "commit_hash": "14726466248048dc40e1e4d84119a0bc5da41432", + "commit_short_hash": "14726466", + "branch": "develop", + "release_time": "2025-10-11 16:30:23", + "download_url": "https://ks3-cn-guangzhou.ksyuncs.com/shuidrop-chat-server/installers/ShuiDi_AI_Assistant_Setup_v1.5.9.exe", + "stats": { + "files_changed": 3, + "lines_added": 29, + "lines_deleted": 2 + } + }, { "version": "1.5.8", "update_type": "patch",