80827101 by shady

修复前景色不显示的问题,冻结依赖,准备打包

1 parent 4e39556d
......@@ -6,14 +6,14 @@ echo "Building Gemini Image Generator"
echo "================================"
# Check if virtual environment exists
if [ ! -d "venv" ]; then
if [ ! -d ".venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
/opt/homebrew/bin/python3.11 -m venv .venv
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
source .venv/bin/activate
# Install dependencies
echo "Installing dependencies..."
......@@ -30,7 +30,7 @@ pyinstaller --name="ZB100ImageGenerator" \
--onefile \
--windowed \
--add-data "config.json:." \
image_generator_qt.py
image_generator.py
# Check if build was successful
if [ -f "dist/ZB100ImageGenerator.app/Contents/MacOS/ZB100ImageGenerator" ] || [ -f "dist/ZB100ImageGenerator" ]; then
......
......@@ -6,14 +6,14 @@ echo Building Gemini Image Generator
echo ================================
REM Check if virtual environment exists
if not exist "venv" (
if not exist ".venv" (
echo Creating virtual environment...
python -m venv venv
python -m venv .venv
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
call .venv\Scripts\activate.bat
REM Install dependencies
echo Installing dependencies...
......@@ -33,7 +33,7 @@ pyinstaller --name="ZB100ImageGenerator" ^
--windowed ^
--icon=zb100_kehuan.ico ^
--add-data "config.json;." ^
image_generator_qt.py
image_generator.py
REM Check if build was successful
if exist "dist\ZB100ImageGenerator.exe" (
......
......@@ -14,7 +14,6 @@ from PySide6.QtCore import Qt, QThread, Signal, QSize
from PySide6.QtGui import QPixmap, QFont, QIcon, QDesktopServices
from PySide6.QtCore import QUrl
from PIL import Image
import base64
import io
import json
......@@ -250,7 +249,8 @@ class LoginDialog(QDialog):
self.show_error("请输入用户名")
return
if not password_input:
# Check if password is provided or saved password exists
if not password_input and not self.saved_password_hash:
self.show_error("请输入密码")
return
......
# Qt GUI 版本依赖
# 核心依赖
google-genai>=1.0.0,<2.0.0
Pillow>=10.0.0,<11.0.0
PyQt5>=5.15.0,<6.0.0
# 数据库依赖
pymysql>=1.0.0,<2.0.0
# 打包工具
pyinstaller>=6.0.0,<7.0.0
altgraph==0.17.5
annotated-types==0.7.0
anyio==4.12.0
cachetools==6.2.2
certifi==2025.11.12
charset-normalizer==3.4.4
google-auth==2.43.0
google-genai==1.52.0
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.11
macholib==1.16.4
packaging==25.0
pyasn1==0.6.1
pyasn1_modules==0.4.2
pydantic==2.12.5
pydantic_core==2.41.5
pyinstaller==6.17.0
pyinstaller-hooks-contrib==2025.10
PyMySQL==1.1.2
PySide6==6.10.1
PySide6_Addons==6.10.1
PySide6_Essentials==6.10.1
requests==2.32.5
rsa==4.9.1
shiboken6==6.10.1
tenacity==9.1.2
typing-inspection==0.4.2
typing_extensions==4.15.0
urllib3==2.5.0
websockets==15.0.1
......