f7fd7ef0 by 柴进

:bug: 修复 macOS 启动闪退: PyInstaller 未打包 Pillow 原生 dylib

根因: PIL/_imaging.so 依赖 libtiff.6.dylib,但 PyInstaller 默认未收集。
修复: 添加 --collect-all PIL 确保所有 Pillow 原生库(.dylib/.so)被打包。
同步更新 Windows 打包脚本。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b2446d9a
...@@ -77,6 +77,7 @@ pyinstaller --name="ZB100ImageGenerator" \ ...@@ -77,6 +77,7 @@ pyinstaller --name="ZB100ImageGenerator" \
77 --windowed \ 77 --windowed \
78 --add-data "config.json:." \ 78 --add-data "config.json:." \
79 --icon=zb100_mac.icns \ 79 --icon=zb100_mac.icns \
80 --collect-all PIL \
80 image_generator.py 81 image_generator.py
81 82
82 # 验证构建结果 83 # 验证构建结果
......
...@@ -34,6 +34,7 @@ pyinstaller --name="ZB100ImageGenerator" ^ ...@@ -34,6 +34,7 @@ pyinstaller --name="ZB100ImageGenerator" ^
34 --icon=zb100_windows.ico ^ 34 --icon=zb100_windows.ico ^
35 --add-data "config.json;." ^ 35 --add-data "config.json;." ^
36 --add-data "zb100_windows.ico;." ^ 36 --add-data "zb100_windows.ico;." ^
37 --collect-all PIL ^
37 image_generator.py 38 image_generator.py
38 39
39 REM Check if build was successful 40 REM Check if build was successful
......