MetaCore-startup/tools/build.bat
2025-10-11 09:24:06 +08:00

31 lines
596 B
Batchfile
Raw Permalink 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
chcp 65001 >nul
echo 🚀 MetaCore 打包工具
echo ==================
REM 检查 Python 是否安装
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ 错误: 未找到 Python请先安装 Python 3.7+
pause
exit /b 1
)
echo ✅ Python 环境检查通过
REM 安装打包依赖
echo 📦 安装打包依赖...
pip install pyinstaller
REM 安装项目依赖
echo 📦 安装项目依赖...
pip install -r MetaCore\requirements.txt
REM 运行打包脚本
echo 🔨 开始打包...
python build_config.py
echo.
echo 打包完成!按任意键退出...
pause >nul