From ca7cb56ab08cb31b0231dd9e05c542ed9fe41aa8 Mon Sep 17 00:00:00 2001 From: Martin Petr Date: Sun, 18 Jan 2026 20:31:41 +0100 Subject: [PATCH] Add setup.bat --- setup.bat | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 setup.bat diff --git a/setup.bat b/setup.bat new file mode 100644 index 0000000..661d32f --- /dev/null +++ b/setup.bat @@ -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 \ No newline at end of file