updated
This commit is contained in:
26
windows_print_service/build_executable.bat
Normal file
26
windows_print_service/build_executable.bat
Normal file
@@ -0,0 +1,26 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user