27 lines
733 B
Batchfile
27 lines
733 B
Batchfile
@echo off
|
|
echo Building standalone Windows Print Service executable...
|
|
|
|
REM Check if PyInstaller is available
|
|
pip show pyinstaller >nul 2>&1
|
|
if %errorLevel% neq 0 (
|
|
echo Installing PyInstaller...
|
|
pip install pyinstaller
|
|
)
|
|
|
|
REM Build standalone executable
|
|
echo Creating standalone executable...
|
|
pyinstaller --onefile --noconsole --name="QualityPrintService" print_service_complete.py
|
|
|
|
if %errorLevel% equ 0 (
|
|
echo.
|
|
echo ✓ Executable created successfully!
|
|
echo Location: dist\QualityPrintService.exe
|
|
echo.
|
|
echo You can now distribute the .exe file instead of the Python script
|
|
echo Update install_service_complete.bat to use the .exe file
|
|
) else (
|
|
echo ERROR: Failed to create executable
|
|
)
|
|
|
|
pause
|