-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
44 lines (35 loc) · 984 Bytes
/
Copy pathbuild.bat
File metadata and controls
44 lines (35 loc) · 984 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
40
41
42
43
44
@echo off
REM Build script for Windows
echo === Garmin Running AI Coach - Build Script ===
echo.
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is required but not installed.
exit /b 1
)
REM Create virtual environment if not exists
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
call venv\Scripts\activate.bat
REM Install dependencies
echo Installing dependencies...
pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
REM Clean previous build
echo Cleaning previous build...
if exist "build" rmdir /s /q build
if exist "dist" rmdir /s /q dist
REM Build with PyInstaller
echo Building application...
pyinstaller garmin_coach.spec
echo.
echo === Build Complete ===
echo Windows executable: dist\GarminRunningCoach\GarminRunningCoach.exe
echo.
echo To create a distributable archive, zip the dist\GarminRunningCoach folder.
pause