-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
52 lines (45 loc) · 1.07 KB
/
Copy pathbuild.bat
File metadata and controls
52 lines (45 loc) · 1.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
@echo off
setlocal
echo ============================================================
echo KeyCast builder
echo ============================================================
echo.
:: Check Python is available
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python not found. Install Python 3.9+ and add it to PATH.
pause
exit /b 1
)
echo [1/3] Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: pip install failed.
pause
exit /b 1
)
echo.
echo [2/3] Building KeyCast.exe ...
pyinstaller ^
--onefile ^
--windowed ^
--name KeyCast ^
--hidden-import=pynput.keyboard._win32 ^
--hidden-import=pynput.mouse._win32 ^
--hidden-import=PyQt6.sip ^
main.py
if errorlevel 1 (
echo ERROR: PyInstaller build failed.
pause
exit /b 1
)
echo.
echo [3/3] Done!
if exist "dist\KeyCast.exe" (
echo KeyCast.exe is ready in the dist\ folder.
echo You can move it anywhere — it is fully self-contained.
) else (
echo WARNING: dist\KeyCast.exe not found. Check output above.
)
echo.
pause