mxivideo/scripts/setup_embedded_python.bat

41 lines
861 B
Batchfile

@echo off
REM 设置嵌入式Python环境
echo 🐍 Setting up embedded Python for MixVideo V2...
echo.
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
)
echo ✅ Python environment check passed
REM 切换到项目根目录
cd /d "%~dp0.."
REM 运行Python设置脚本
echo 📦 Running embedded Python setup...
python scripts\setup_embedded_python.py
if errorlevel 1 (
echo ❌ Setup failed
pause
exit /b 1
)
echo.
echo ✅ Setup completed successfully!
echo.
echo 📋 You can now:
echo 1. Test embedded Python: src-tauri\python-embed\python.exe --version
echo 2. Build your app: cargo tauri build
echo 3. The Python environment will be included in the final executable
echo.
pause