mxivideo/scripts/build_python_core.bat

47 lines
996 B
Batchfile

@echo off
REM Windows批处理脚本 - 构建Python Core
REM 用于Windows环境下构建Python可执行文件
echo 🚀 Building MixVideo V2 Python Core for Windows...
REM 检查Python是否安装
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Python is not installed or not in PATH
echo Please install Python 3.8+ and add it to PATH
pause
exit /b 1
)
REM 检查pip是否可用
python -m pip --version >nul 2>&1
if errorlevel 1 (
echo ❌ pip is not available
echo Please ensure pip is installed with Python
pause
exit /b 1
)
echo ✅ Python environment check passed
REM 切换到项目根目录
cd /d "%~dp0.."
REM 运行Python构建脚本
echo 📦 Running Python build script...
python scripts\build_python_core.py
if errorlevel 1 (
echo ❌ Build failed
pause
exit /b 1
)
echo ✅ Build completed successfully!
echo.
echo 📋 Next steps:
echo 1. Test the build: cargo tauri dev
echo 2. Build the app: cargo tauri build
echo.
pause