diff --git a/install.bat b/install.bat new file mode 100644 index 0000000..b519191 --- /dev/null +++ b/install.bat @@ -0,0 +1,12 @@ +@echo off +set SCRIPTS_DIR=scripts +set LLM_ROUTER_DIR=llm-router + +if exist "%SCRIPTS_DIR%\windows_install.bat" ( + echo Running Windows installation script... + call "%SCRIPTS_DIR%\windows_install.bat" + cd "%LLM_ROUTER_DIR%" && call dl_safetensors.bat +) else ( + echo Error: %SCRIPTS_DIR%\windows_install.bat not found! + exit /b 1 +) diff --git a/install.sh b/install.sh index 06d9ef9..16c883d 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,7 @@ #!/bin/bash SCRIPTS_DIR="scripts" +LLM_ROUTER_DIR="llm-router" echo "Detecting operating system..." @@ -12,6 +13,7 @@ case "$OS_TYPE" in if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then echo "Running Linux installation script..." bash "$SCRIPTS_DIR/linux_install.sh" + bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh" else echo "Error: $SCRIPTS_DIR/linux_install.sh not found!" exit 1 @@ -22,6 +24,7 @@ case "$OS_TYPE" in if [ -f "$SCRIPTS_DIR/macos_install.sh" ]; then echo "Running macOS installation script..." bash "$SCRIPTS_DIR/macos_install.sh" + bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh" else echo "Error: $SCRIPTS_DIR/macos_install.sh not found!" exit 1 @@ -32,6 +35,7 @@ case "$OS_TYPE" in if [ -f "$SCRIPTS_DIR/windows_install.sh" ]; then echo "Running Windows installation script..." bash "$SCRIPTS_DIR/windows_install.sh" + bash "cd $LLM_ROUTER_DIR && dl_safetensors.sh" else echo "Error: $SCRIPTS_DIR/windows_install.sh not found!" exit 1 @@ -39,7 +43,7 @@ case "$OS_TYPE" in ;; *) echo "Unsupported OS detected: $OS_TYPE" - echo "This script supports Linux, macOS, and Windows (via Bash-compatible environments)." + echo "This script supports only Linux and macOS." exit 1 ;; esac diff --git a/scripts/windows_install.bat b/scripts/windows_install.bat new file mode 100644 index 0000000..fc7a86f --- /dev/null +++ b/scripts/windows_install.bat @@ -0,0 +1,16 @@ +@echo off +echo Starting installation for Windows... + +REM Install Python dependencies from requirements.txt +pip install -r requirements.txt + +REM Install Selenium +pip install selenium + +echo Note: pyAudio installation may require additional steps on Windows. +echo Please install portaudio manually (e.g., via vcpkg or prebuilt binaries) and then run: pip install pyaudio +echo Also, download and install chromedriver manually from: https://sites.google.com/chromium.org/driver/getting-started +echo Place chromedriver in a directory included in your PATH. + +echo Installation partially complete for Windows. Follow manual steps above. +pause \ No newline at end of file diff --git a/scripts/windows_install.sh b/scripts/windows_install.sh deleted file mode 100644 index be52171..0000000 --- a/scripts/windows_install.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -echo "Starting installation for Windows..." - -# Install Python dependencies from requirements.txt -pip3 install -r requirements.txt - -# Install Selenium -pip3 install selenium - -echo "Note: pyAudio installation may require additional steps on Windows." -echo "Please install portaudio manually (e.g., via vcpkg or prebuilt binaries) and then run: pip3 install pyaudio" -echo "Also, download and install chromedriver manually from: https://sites.google.com/chromium.org/driver/getting-started" -echo "Place chromedriver in a directory included in your PATH." - -echo "Installation partially complete for Windows. Follow manual steps above." \ No newline at end of file diff --git a/start_services.cmd b/start_services.cmd new file mode 100644 index 0000000..428c590 --- /dev/null +++ b/start_services.cmd @@ -0,0 +1,7 @@ +@echo off + +REM Up the provider in windows +start ollama serve + +REM Up Docker +cd searxng && docker compose up \ No newline at end of file