fix
This commit is contained in:
48
python_core/build_test.bat
Normal file
48
python_core/build_test.bat
Normal file
@@ -0,0 +1,48 @@
|
||||
@echo off
|
||||
REM 测试PyInstaller构建
|
||||
|
||||
echo 🔨 Testing PyInstaller build...
|
||||
|
||||
REM 检查Python
|
||||
python --version
|
||||
if errorlevel 1 (
|
||||
echo ❌ Python not found
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM 检查PyInstaller
|
||||
python -m PyInstaller --version
|
||||
if errorlevel 1 (
|
||||
echo Installing PyInstaller...
|
||||
python -m pip install pyinstaller
|
||||
)
|
||||
|
||||
REM 清理之前的构建
|
||||
if exist build rmdir /s /q build
|
||||
if exist dist rmdir /s /q dist
|
||||
|
||||
REM 构建简化版本
|
||||
echo Building simplified version...
|
||||
python -m PyInstaller --onefile --console --name mixvideo-python-core main_simple.py
|
||||
|
||||
if errorlevel 1 (
|
||||
echo ❌ Build failed
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM 测试可执行文件
|
||||
echo Testing executable...
|
||||
dist\mixvideo-python-core.exe --version
|
||||
|
||||
if errorlevel 1 (
|
||||
echo ❌ Executable test failed
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo ✅ Build successful!
|
||||
echo Executable location: dist\mixvideo-python-core.exe
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user