This commit is contained in:
2026-05-09 16:31:36 +08:00
commit 9f785a17f5
8 changed files with 340 additions and 0 deletions

13
build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
source venv/bin/activate
# 安装打包工具 PyInstaller
# pip install pyinstaller
# 清理旧的构建文件
rm -rf build dist fan.spec
# 将 fan.py 打包为单文件可执行程序
pyinstaller --onefile fan.py
echo "打包完成!可执行文件位于 dist/fan"