日志LEVEL默认-1关闭,构建默认--windowed无终端

This commit is contained in:
2026-05-15 17:10:59 +08:00
parent 6caa6deaa3
commit 713eb0101f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ if exist build rmdir /s /q build
echo [4/4] Building exe with PyInstaller... echo [4/4] Building exe with PyInstaller...
uv run pyinstaller ^ uv run pyinstaller ^
--onefile ^ --onefile ^
--console ^ --windowed ^
--name "PickupAuto" ^ --name "PickupAuto" ^
--icon="pickup.ico" ^ --icon="pickup.ico" ^
--add-data "config.json;." ^ --add-data "config.json;." ^
+1 -1
View File
@@ -31,7 +31,7 @@ rm -rf dist build
echo "[4/4] Building with PyInstaller..." echo "[4/4] Building with PyInstaller..."
uv run pyinstaller \ uv run pyinstaller \
--onefile \ --onefile \
--console \ --windowed \
--name "PickupAuto" \ --name "PickupAuto" \
--add-data "config.json:." \ --add-data "config.json:." \
--add-data "pickup.ico:." \ --add-data "pickup.ico:." \
+1 -1
View File
@@ -9,7 +9,7 @@
import sys import sys
from datetime import datetime from datetime import datetime
LEVEL = 2 # 编译时修改此值 LEVEL = -1 # 编译时修改此值
_gui_callback = None # GUI 注册的回调: (msg: str) -> None _gui_callback = None # GUI 注册的回调: (msg: str) -> None