diff --git a/README.md b/README.md index f5ab591..ec0ba6b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ uv sync - `tinify`:TinyPNG 官方 Python SDK。 - `requests[socks]`:为 HTTP/SOCKS5 代理提供支持。 -- `pyinstaller`:开发依赖,用于打包 Windows 二进制。 ## 启动 GUI @@ -241,7 +240,7 @@ uv run tinypng_balancer.py --init-config tinify_keys.json 推荐打包为 `onedir` 文件夹版: ```powershell -uv run pyinstaller --noconfirm --clean --onedir --windowed --name tinypng-gui --add-data "tinify_keys.sample.json;." tinypng_gui.py +uv run --with pyinstaller pyinstaller --noconfirm --clean --onedir --windowed --name tinypng-gui --collect-data tinify --add-data "tinify_keys.sample.json;." tinypng_gui.py ``` 输出目录: @@ -275,7 +274,7 @@ dist/ *.exe ``` -是否提交 `pyproject.toml` 中的 `pyinstaller` 开发依赖,取决于是否希望项目自带打包能力。当前项目保留该开发依赖,方便以后重复打包。 +`pyinstaller` 只在打包时临时安装和使用,不需要作为项目依赖提交。 ## 常见问题 diff --git a/pyproject.toml b/pyproject.toml index b34d330..47375f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,8 +7,3 @@ dependencies = [ "requests[socks]>=2.32.5", "tinify>=1.6.0", ] - -[dependency-groups] -dev = [ - "pyinstaller>=6.20.0", -]