-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_win.bat
More file actions
66 lines (60 loc) · 3.07 KB
/
Copy pathbuild_win.bat
File metadata and controls
66 lines (60 loc) · 3.07 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@echo off
chcp 65001 >nul 2>&1
echo.
echo ╔══════════════════════════════════════╗
echo ║ OJE CUE MONITOR — Build ║
echo ��� Windows x64 .exe ║
echo ╚══════════════════════════════════════╝
echo.
:: ── Check Python ────────────────────────────────────────────────────────────
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python not found. Install Python 3.9+ from python.org
pause
exit /b 1
)
:: ── Check libltc.dll ────────────────────────────────────────────────────────
if not exist "libs\win64\libltc.dll" (
echo ERROR: libs\win64\libltc.dll not found.
echo This file should be included in the repository.
pause
exit /b 1
)
:: ── Install dependencies ────────────────────────────────────────────────────
:: qrcode[pil] pulls in Pillow — required for PNG QR rendering in web_remote.py.
:: Errors are left visible so missing wheels (e.g. pyaudio) are obvious.
echo ▶ Installing dependencies...
pip install pyinstaller pyqt6 pyaudio numpy "qrcode[pil]" aiohttp Pillow
if errorlevel 1 (
echo.
echo ERROR: Dependency install failed. If pyaudio is the problem, try:
echo pip install pipwin
echo pipwin install pyaudio
echo.
pause
exit /b 1
)
:: ── Clean previous build ────────────────────────────────────────────────────
echo ▶ Cleaning previous build...
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
:: ── Build ───────────────────────────────────────────────────────────────────
echo.
echo ▶ Building .exe...
python -m PyInstaller OJECueMonitor_win.spec --noconfirm
:: ── Result ──────────────────────────────────────────────────────────────────
if exist "dist\OJE CUE MONITOR.exe" (
echo.
echo ══════════════════════════════════════════
echo ✓ Build successful!
echo.
echo File: dist\OJE CUE MONITOR.exe
echo.
echo Double-click the .exe to run.
echo ══════════════════════════════════════════
) else (
echo.
echo ✗ Build failed — check errors above.
)
echo.
pause