forked from Pragament/python_omr_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_installer_win.bat
More file actions
39 lines (35 loc) · 1.17 KB
/
Copy pathbuild_installer_win.bat
File metadata and controls
39 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
title OMR Test Manager - Windows Installer Builder
echo ===================================================
echo OMR Test Manager - Windows Installer Builder
echo ===================================================
echo.
:: Check for Python
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python is not installed or not in your PATH.
echo Please install Python 3.7+ from python.org and try again.
pause
exit /b %errorlevel%
)
echo === Step 1: Installing Required Dependencies ===
pip install Pillow pymupdf google-cloud-firestore opencv-python deepmerge dotmap jsonschema matplotlib numpy pandas rich screeninfo PyInstaller
if %errorlevel% neq 0 (
echo Error: Failed to install Python dependencies.
pause
exit /b %errorlevel%
)
echo.
echo === Step 2: Compiling Executable ===
python build_installer.py
if %errorlevel% neq 0 (
echo Error: Build failed!
pause
exit /b %errorlevel%
)
echo.
echo ===================================================
echo Success! Standalone EXE is generated in the "dist" folder.
echo You can send "dist/OMRTestManager.exe" to the school.
echo ===================================================
pause