Add setup.bat
This commit is contained in:
39
setup.bat
Normal file
39
setup.bat
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
@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://%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
|
||||||
|
npx bun scripts/setup.ts %GIT_USER% %GIT_PASS%
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo Setup process complete.
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user