MetaCore-startup/启动MetaCore.bat
2025-10-11 09:27:51 +08:00

50 lines
1.0 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo 启动 MetaCore 项目管理平台
echo ========================================
echo.
REM 进入MetaCore目录
cd MetaCore
REM 检查Python是否可用
python --version >nul 2>&1
if errorlevel 1 (
echo [错误] Python未找到请确保Python已正确安装并添加到PATH
pause
exit /b 1
)
echo [信息] Python环境正常
python --version
REM 检查PyQt5是否已安装
python -c "import PyQt5" >nul 2>&1
if errorlevel 1 (
echo [警告] PyQt5未安装正在安装...
python -m pip install PyQt5
if errorlevel 1 (
echo [错误] PyQt5安装失败
pause
exit /b 1
)
echo [成功] PyQt5安装完成
) else (
echo [信息] PyQt5已安装
)
echo.
echo [信息] 正在启动MetaCore应用...
echo ========================================
echo.
REM 启动应用
python main.py
echo.
echo ========================================
echo [信息] MetaCore应用已退出
echo 感谢使用!
cd ..
pause