Initial commit: Kivy database interface application with search, add/update, delete functionality and Windows build support
This commit is contained in:
42
build.bat
Normal file
42
build.bat
Normal file
@@ -0,0 +1,42 @@
|
||||
@echo off
|
||||
REM Batch file to build Windows executable
|
||||
|
||||
echo ========================================
|
||||
echo Building Windows Executable
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
REM Check if virtual environment exists
|
||||
if not exist "venv\Scripts\activate.bat" (
|
||||
echo Creating virtual environment...
|
||||
python -m venv venv
|
||||
call venv\Scripts\activate.bat
|
||||
echo Installing requirements...
|
||||
pip install -r requirements.txt
|
||||
) else (
|
||||
call venv\Scripts\activate.bat
|
||||
)
|
||||
|
||||
REM Install PyInstaller if not present
|
||||
python -c "import pyinstaller" 2>nul
|
||||
if errorlevel 1 (
|
||||
echo Installing PyInstaller...
|
||||
pip install pyinstaller
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Building executable with PyInstaller...
|
||||
echo This may take a few minutes...
|
||||
echo.
|
||||
|
||||
REM Build the executable
|
||||
python build_windows.py
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Build process completed!
|
||||
echo.
|
||||
echo Executable location: dist\DatabaseApp.exe
|
||||
echo ========================================
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user