Add Windows GUI and Nuitka packaging support - #176
Open
YiLanTinYu wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
关联讨论:#175
这是一个 Windows 图形界面版本的尝试,目标是让不熟悉 CLI 的普通办公用户也能使用 python-office 的常用能力。根据同事试用反馈,PDF 转 Word 和 PDF 合并是最受欢迎的高频场景。
主要改动
gui/PySide6 桌面界面入口scripts/build-gui-nuitka.ps1gui可选依赖、python-office-guiconsole script 和图标资源打包配置docs/python-office-windows-gui-website-article.md使用方式
或在源码目录运行:
Windows 打包:
验证
python -m py_compile gui\__init__.py gui\__main__.py gui\app.py gui\main_window.py gui\panels.py gui\registry.py gui\run.py gui\styles.py gui\workers.py gui\widgets\__init__.py gui\widgets\param_form.py gui\tests\test_smoke.py office\api\pdf.py office\lib\decorator_utils\deprecated.pypython -m pytest gui\tests\test_smoke.py:5 passedpython -c "import gui.run; print(callable(gui.run.main))":Truegit diff --check:通过说明
这次 PR 不包含 Nuitka 打包产物、zip、dist 目录或缓存文件,只提交源码、脚本、图标资源和文档。