From ecf5124700bc3ba8b488dd65ef034c40d95650e6 Mon Sep 17 00:00:00 2001 From: MAOMOMO Date: Sat, 23 May 2026 19:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++--- pyproject.toml | 5 ----- 2 files changed, 2 insertions(+), 8 deletions(-) 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", -]