forked from beznazwiska/claude-peak-hours
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
39 lines (35 loc) · 829 Bytes
/
Copy pathbuild.bat
File metadata and controls
39 lines (35 loc) · 829 Bytes
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
echo === Claude Peak Hours — Windows Build ===
echo.
REM Check for Python
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python not found. Install Python 3.11+ from python.org
pause
exit /b 1
)
REM Install dependencies
echo Installing dependencies...
pip install -r requirements.txt --quiet
REM Build with PyInstaller
echo.
echo Building executable...
pyinstaller ^
--noconfirm ^
--onefile ^
--windowed ^
--name "Claude Peak Hours" ^
--icon "assets\icon.ico" ^
--add-data "src\strings.py;." ^
--add-data "src\peak_hours_manager.py;." ^
--add-data "src\tray_app.py;." ^
src\main.pyw
echo.
if exist "dist\Claude Peak Hours.exe" (
echo [OK] Build successful!
echo dist\Claude Peak Hours.exe
) else (
echo [ERROR] Build failed.
)
echo.
pause