mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-04 18:20:09 +00:00
Fix : installation script for windows
This commit is contained in:
commit
68bc60f6f4
12
install.bat
Normal file
12
install.bat
Normal file
@ -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
|
||||||
|
)
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPTS_DIR="scripts"
|
SCRIPTS_DIR="scripts"
|
||||||
|
LLM_ROUTER_DIR="llm-router"
|
||||||
|
|
||||||
echo "Detecting operating system..."
|
echo "Detecting operating system..."
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ case "$OS_TYPE" in
|
|||||||
if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then
|
if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then
|
||||||
echo "Running Linux installation script..."
|
echo "Running Linux installation script..."
|
||||||
bash "$SCRIPTS_DIR/linux_install.sh"
|
bash "$SCRIPTS_DIR/linux_install.sh"
|
||||||
|
bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh"
|
||||||
else
|
else
|
||||||
echo "Error: $SCRIPTS_DIR/linux_install.sh not found!"
|
echo "Error: $SCRIPTS_DIR/linux_install.sh not found!"
|
||||||
exit 1
|
exit 1
|
||||||
@ -22,6 +24,7 @@ case "$OS_TYPE" in
|
|||||||
if [ -f "$SCRIPTS_DIR/macos_install.sh" ]; then
|
if [ -f "$SCRIPTS_DIR/macos_install.sh" ]; then
|
||||||
echo "Running macOS installation script..."
|
echo "Running macOS installation script..."
|
||||||
bash "$SCRIPTS_DIR/macos_install.sh"
|
bash "$SCRIPTS_DIR/macos_install.sh"
|
||||||
|
bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh"
|
||||||
else
|
else
|
||||||
echo "Error: $SCRIPTS_DIR/macos_install.sh not found!"
|
echo "Error: $SCRIPTS_DIR/macos_install.sh not found!"
|
||||||
exit 1
|
exit 1
|
||||||
@ -32,6 +35,7 @@ case "$OS_TYPE" in
|
|||||||
if [ -f "$SCRIPTS_DIR/windows_install.sh" ]; then
|
if [ -f "$SCRIPTS_DIR/windows_install.sh" ]; then
|
||||||
echo "Running Windows installation script..."
|
echo "Running Windows installation script..."
|
||||||
bash "$SCRIPTS_DIR/windows_install.sh"
|
bash "$SCRIPTS_DIR/windows_install.sh"
|
||||||
|
bash "cd $LLM_ROUTER_DIR && dl_safetensors.sh"
|
||||||
else
|
else
|
||||||
echo "Error: $SCRIPTS_DIR/windows_install.sh not found!"
|
echo "Error: $SCRIPTS_DIR/windows_install.sh not found!"
|
||||||
exit 1
|
exit 1
|
||||||
@ -39,7 +43,7 @@ case "$OS_TYPE" in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported OS detected: $OS_TYPE"
|
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
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
16
scripts/windows_install.bat
Normal file
16
scripts/windows_install.bat
Normal file
@ -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
|
@ -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."
|
|
7
start_services.cmd
Normal file
7
start_services.cmd
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
REM Up the provider in windows
|
||||||
|
start ollama serve
|
||||||
|
|
||||||
|
REM Up Docker
|
||||||
|
cd searxng && docker compose up
|
Loading…
x
Reference in New Issue
Block a user