This commit is contained in:
root
2025-07-11 15:14:52 +08:00
parent fb3cf1f62f
commit 6671f590e9
13 changed files with 1738 additions and 24 deletions

View File

@@ -0,0 +1,40 @@
@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