reference_entry_and_build.md
1.12 KB
name: 项目入口、打包、远端
description: 主入口、PyInstaller spec、打包脚本、Git 远端等关键定位
type: reference
originSessionId: 21abab40-0d6c-449a-ae72-9ca03205f077
主入口:
-
image_generator.pymain()(Phase 1-6 启动序列) - QApplication 创建在 Phase 4,主题应用在 Phase 4 同步
- preflight 在 Phase 4.5,登录页在 Phase 6
打包:
- spec 文件:
ZB100ImageGenerator.spec(跨平台单一真相源) - Windows 脚本:
build_windows.bat(自动建 venv + pip install + pyinstaller,最后 pause) - macOS 脚本:
build_mac_universal.sh - 直接命令:
.venv/Scripts/pyinstaller.exe ZB100ImageGenerator.spec - 产物:
dist/ZB100ImageGenerator/ZB100ImageGenerator.exe(~134MB)
Git 远端:
origin: http://gitlab.zb100.com:10080/chaijin/GoogleNanoBananaApp.git- 默认主分支
master - Git 用户
chaijin
用户管理工具(管理员):
python user_util.py [add|list|disable|enable|reset] <username> [<password>]- 操作 MySQL
nano_banana_users表(hash SHA256) - 配置从
config.json的db_config字段读取