fix bug
This commit is contained in:
29
build-simple.sh
Executable file
29
build-simple.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Linux 存储管理器 - 简化打包脚本
|
||||
|
||||
set -e
|
||||
|
||||
echo "========================================"
|
||||
echo "Linux 存储管理器 - 打包"
|
||||
echo "========================================"
|
||||
|
||||
# 清理旧构建
|
||||
echo "清理旧构建..."
|
||||
rm -rf build dist
|
||||
|
||||
# 执行打包
|
||||
echo "开始打包..."
|
||||
pyinstaller -F --name "linux-storage-manager" main.py
|
||||
|
||||
# 显示结果
|
||||
if [ -f "dist/linux-storage-manager" ]; then
|
||||
echo ""
|
||||
echo "========================================"
|
||||
echo "打包成功!"
|
||||
echo "输出: dist/linux-storage-manager"
|
||||
echo "========================================"
|
||||
ls -lh dist/linux-storage-manager
|
||||
else
|
||||
echo "打包失败!"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user