Fix : installation script for windows

This commit is contained in:
martin legrand
2025-03-25 13:04:01 +01:00
5 changed files with 40 additions and 17 deletions
+5 -1
View File
@@ -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