This commit is contained in:
root
2026-02-10 02:54:13 +08:00
parent 4a59323398
commit 64bfd85368
22 changed files with 2572 additions and 422 deletions

19
run.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Linux 存储管理器启动脚本
# 自动检测并启动合适的版本
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
if [ -f "$SCRIPT_DIR/dist/disk-manager" ]; then
# 打包版本
echo "启动打包版本..."
exec "$SCRIPT_DIR/dist/disk-manager" "$@"
elif [ -f "$SCRIPT_DIR/main.py" ]; then
# 统一入口
echo "启动源码版本..."
exec python3 "$SCRIPT_DIR/main.py" "$@"
else
echo "错误: 找不到 disk-manager 或 main.py"
exit 1
fi