40 lines
929 B
Batchfile
40 lines
929 B
Batchfile
@echo off
|
|
set /p "GIT_USER=Enter Username: "
|
|
set /p "GIT_PASS=Enter Password: "
|
|
|
|
:: Encode special characters in password for the URL if necessary
|
|
:: Note: This uses the format https://user:pass@host
|
|
set "REPO_URL=https://darujdal-%GIT_USER%:%GIT_PASS%@git.martinpetr.dev/darujdal.cz/app.git"
|
|
|
|
echo.
|
|
echo === Cloning Repository and Submodules ===
|
|
git clone --recursive %REPO_URL% darujdal_app
|
|
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo Failed to clone repository. Check your credentials.
|
|
pause
|
|
exit /b %ERRORLEVEL%
|
|
)
|
|
|
|
cd darujdal_app
|
|
|
|
echo.
|
|
echo === Installing Tooling Dependencies ===
|
|
cd repos/tooling
|
|
call npx bun install
|
|
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo npm install failed.
|
|
pause
|
|
exit /b %ERRORLEVEL%
|
|
)
|
|
|
|
echo.
|
|
echo === Running Setup Script ===
|
|
:: Navigating back to the root if necessary or running from current location
|
|
cd ../..
|
|
npx bun scripts/setup.ts %GIT_USER% %GIT_PASS%
|
|
|
|
echo.
|
|
echo Setup process complete.
|
|
pause |