proxy backend
This commit is contained in:
50
build.bat
Normal file
50
build.bat
Normal file
@@ -0,0 +1,50 @@
|
||||
@echo off
|
||||
echo Building WLED Controller for Windows...
|
||||
echo.
|
||||
|
||||
cd backend
|
||||
|
||||
echo [1/4] Installing backend dependencies...
|
||||
call npm install
|
||||
if errorlevel 1 goto error
|
||||
|
||||
echo.
|
||||
echo [2/4] Installing frontend dependencies...
|
||||
cd ..\frontend
|
||||
call npm install
|
||||
if errorlevel 1 goto error
|
||||
|
||||
echo.
|
||||
echo [3/4] Running Prisma generate...
|
||||
cd ..\backend
|
||||
call npm run prisma:generate
|
||||
if errorlevel 1 goto error
|
||||
|
||||
echo.
|
||||
echo [4/4] Building and packaging executable...
|
||||
call npm run package
|
||||
if errorlevel 1 goto error
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Build complete!
|
||||
echo Executable location: release\wled-controller.exe
|
||||
echo ========================================
|
||||
echo.
|
||||
echo To run:
|
||||
echo 1. Copy release\wled-controller.exe to your desired location
|
||||
echo 2. Copy backend\prisma\dev.db to the same folder (create prisma subfolder)
|
||||
echo 3. Run wled-controller.exe
|
||||
echo.
|
||||
pause
|
||||
goto end
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Build failed! Please check the errors above.
|
||||
echo ========================================
|
||||
pause
|
||||
exit /b 1
|
||||
|
||||
:end
|
||||
Reference in New Issue
Block a user