forked from nupurmadaan04/SOUL_SENSE_EXAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
33 lines (27 loc) · 716 Bytes
/
build.bat
File metadata and controls
33 lines (27 loc) · 716 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
@echo off
echo Building SoulSense Desktop Application...
echo.
REM Activate virtual environment if exists
if exist venv\Scripts\activate.bat (
call venv\Scripts\activate.bat
)
REM Install PyInstaller if not present
pip show pyinstaller >nul 2>&1
if errorlevel 1 (
echo Installing PyInstaller...
pip install pyinstaller
)
REM Clean previous builds
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
REM Build the application
echo.
echo Building executable...
pyinstaller soulsense.spec
echo.
if exist dist\SoulSense\SoulSense.exe (
echo Build successful! Executable located at: dist\SoulSense\SoulSense.exe
) else (
echo Build failed. Check the output above for errors.
)
pause