mirror of
https://github.com/ONLYOFFICE/DocSpace-buildtools.git
synced 2025-04-18 13:44:02 +03:00
40 lines
520 B
Batchfile
40 lines
520 B
Batchfile
@echo off
|
|
|
|
echo Start build backend...
|
|
echo.
|
|
|
|
cd /D "%~dp0"
|
|
call runasadmin.bat "%~dpnx0"
|
|
|
|
if %errorlevel% == 0 (
|
|
call start\stop.bat nopause
|
|
dotnet build ..\server\asc.web.slnf /fl1 /flp1:logfile=asc.web.log;verbosity=normal
|
|
echo.
|
|
)
|
|
|
|
if %errorlevel% == 0 (
|
|
|
|
echo install nodejs projects dependencies...
|
|
echo.
|
|
|
|
for /R "scripts\" %%f in (*.bat) do (
|
|
echo Run script %%~nxf...
|
|
echo.
|
|
call scripts\%%~nxf
|
|
)
|
|
)
|
|
|
|
echo.
|
|
|
|
if %errorlevel% == 0 (
|
|
call start\start.bat nopause
|
|
)
|
|
|
|
echo.
|
|
|
|
if "%1"=="nopause" goto end
|
|
pause
|
|
|
|
|
|
|
|
:end |