From f199ff97d19144d61e1626b0e24ebad1b337ebdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E5=B1=B1=E5=85=AC=E4=BB=94?= Date: Sun, 22 Feb 2026 23:05:30 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E4=BF=AE=E6=AD=A3=20Git?= =?UTF-8?q?Hub=20Actions=20macOS=20=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E7=9B=AE=E5=BD=95=E5=90=8D=E7=A7=B0=E5=92=8C?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正 build-mac.yml 中 scenes_data 目录名称错误(原 preview_scenes) - 更新 SceneConfigManager 中 SCENES_DIR_NAME 常量为 scenes_data - 添加缺失的 Python 模块到构建配置(core, dialogs, file, ui, utils, locales, version.py) - 添加模块排除规则以减小包体积(PySide6 非必要模块、测试库、大型第三方库) --- .github/workflows/build-mac.yml | 59 +++++++++++++++++++++++++++++++-- CHANGELOG.md | 40 ++++++++++++++++++++++ core/config.py | 2 +- 3 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 2ac4692..63c6437 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -48,9 +48,64 @@ jobs: --name "ColorCard" \ --windowed \ --onefile \ - --add-data "color_data:color_data" \ - --add-data "preview_scenes:preview_scenes" \ + --add-data "version.py:." \ + --add-data "core:core" \ + --add-data "dialogs:dialogs" \ + --add-data "file:file" \ --add-data "logo:logo" \ + --add-data "ui:ui" \ + --add-data "utils:utils" \ + --add-data "locales:locales" \ + --add-data "color_data:color_data" \ + --add-data "scenes_data:scenes_data" \ + --exclude-module "PySide6.Qt3DAnimation" \ + --exclude-module "PySide6.Qt3DCore" \ + --exclude-module "PySide6.Qt3DExtras" \ + --exclude-module "PySide6.Qt3DInput" \ + --exclude-module "PySide6.Qt3DLogic" \ + --exclude-module "PySide6.Qt3DRender" \ + --exclude-module "PySide6.QtCharts" \ + --exclude-module "PySide6.QtDataVisualization" \ + --exclude-module "PySide6.QtGraphs" \ + --exclude-module "PySide6.QtLocation" \ + --exclude-module "PySide6.QtMultimedia" \ + --exclude-module "PySide6.QtMultimediaWidgets" \ + --exclude-module "PySide6.QtNetworkAuth" \ + --exclude-module "PySide6.QtPositioning" \ + --exclude-module "PySide6.QtQuick" \ + --exclude-module "PySide6.QtQuick3D" \ + --exclude-module "PySide6.QtQuickWidgets" \ + --exclude-module "PySide6.QtRemoteObjects" \ + --exclude-module "PySide6.QtSensors" \ + --exclude-module "PySide6.QtSerialBus" \ + --exclude-module "PySide6.QtSerialPort" \ + --exclude-module "PySide6.QtSql" \ + --exclude-module "PySide6.QtStateMachine" \ + --exclude-module "PySide6.QtTest" \ + --exclude-module "PySide6.QtTextToSpeech" \ + --exclude-module "PySide6.QtWebChannel" \ + --exclude-module "PySide6.QtWebEngineCore" \ + --exclude-module "PySide6.QtWebEngineQuick" \ + --exclude-module "PySide6.QtWebEngineWidgets" \ + --exclude-module "PySide6.QtWebSockets" \ + --exclude-module "PySide6.QtXmlPatterns" \ + --exclude-module "PySide6.QtOpenGL" \ + --exclude-module "PySide6.QtOpenGLWidgets" \ + --exclude-module "PySide6.QtPdf" \ + --exclude-module "PySide6.QtPdfWidgets" \ + --exclude-module "PySide6.QtConcurrent" \ + --exclude-module "PySide6.QtHelp" \ + --exclude-module "unittest" \ + --exclude-module "pydoc" \ + --exclude-module "doctest" \ + --exclude-module "test" \ + --exclude-module "matplotlib" \ + --exclude-module "pandas" \ + --exclude-module "scipy" \ + --exclude-module "sklearn" \ + --exclude-module "cv2" \ + --exclude-module "tkinter" \ + --exclude-module "_tkinter" \ --osx-bundle-identifier "com.hxiaostudio.colorcard" \ --clean \ main.py diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..cb001a3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,40 @@ +# 🎨 取色卡 v1.3.0 Beta 更新日志 + +## ✨ 新增功能 + +**多语言支持** +- 新增多语言切换功能,支持简体中文、繁體中文、English、日本語、Français、Русский 六种语言 +- 在设置界面即可切换语言,实时生效 + +**色彩分析增强** +- 新增图片色彩空间识别与Gamma校正支持,提升颜色提取准确性 +- 采样点数量上限提升至6个,可同时提取更多颜色 + +**配色预览面板** +- 配色预览功能全面重构,统一使用SVG格式模板 +- 新增大量场景示例,覆盖手机UI、网页、插画、排版、品牌、海报、图案、杂志等多种应用场景 +- 支持导入自定义SVG模板预览配色效果 +- 新增色彩管理面板分组功能,便于浏览和管理配色方案 + +## 🔧 问题修复 + +- 修复色轮采样点无法到达圆周的问题,现在采样点可以正确移动到色轮边缘 +- 修复RYB模式配色关系不正确的问题,配色生成结果更加准确 + +## 🎨 界面优化 + +- 调整色轮色相起始位置至12点钟方向,更符合设计习惯 +- 调整主窗口最小宽度和默认宽度,优化界面布局 +- 内置色彩分批加载时添加"加载中……"过渡标识,提升加载体验 +- 直方图组件添加加载中提示,大图片加载时反馈更清晰 + +## ⚡ 性能提升 + +- 实现配色计算和直方图计算缓存机制,重复操作响应更快 +- 优化直方图计算服务,缩短延迟计算时间,大图片加载性能显著提升 +- 实现业务服务延迟加载,减少应用启动时间 +- 实现图片内存管理和线程安全优化,运行更稳定 + +## 📝 许可证完善 + +- 添加PyInstaller许可证到项目许可证文档,完善开源合规性 diff --git a/core/config.py b/core/config.py index 51fa6e8..90f775b 100644 --- a/core/config.py +++ b/core/config.py @@ -468,7 +468,7 @@ class ConfigManager: class SceneConfigManager: """场景配置管理器,处理预览场景配置的加载、保存和导入导出""" - SCENES_DIR_NAME: str = "preview_scenes" + SCENES_DIR_NAME: str = "scenes_data" SCENES_FILE_NAME: str = "scenes.json" USER_SCENES_DIR_NAME: str = "user_scenes" -- Gitee