30 lines
686 B
Bash
Executable File
30 lines
686 B
Bash
Executable File
#!/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
|