Feat : installation script & readme update
This commit is contained in:
Executable
+47
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPTS_DIR="scripts"
|
||||
|
||||
echo "Detecting operating system..."
|
||||
|
||||
OS_TYPE=$(uname -s)
|
||||
|
||||
case "$OS_TYPE" in
|
||||
"Linux"*)
|
||||
echo "Detected Linux OS"
|
||||
if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then
|
||||
echo "Running Linux installation script..."
|
||||
bash "$SCRIPTS_DIR/linux_install.sh"
|
||||
else
|
||||
echo "Error: $SCRIPTS_DIR/linux_install.sh not found!"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
"Darwin"*)
|
||||
echo "Detected macOS"
|
||||
if [ -f "$SCRIPTS_DIR/macos_install.sh" ]; then
|
||||
echo "Running macOS installation script..."
|
||||
bash "$SCRIPTS_DIR/macos_install.sh"
|
||||
else
|
||||
echo "Error: $SCRIPTS_DIR/macos_install.sh not found!"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
"MINGW"* | "MSYS"* | "CYGWIN"*)
|
||||
echo "Detected Windows (via Bash-like environment)"
|
||||
if [ -f "$SCRIPTS_DIR/windows_install.sh" ]; then
|
||||
echo "Running Windows installation script..."
|
||||
bash "$SCRIPTS_DIR/windows_install.sh"
|
||||
else
|
||||
echo "Error: $SCRIPTS_DIR/windows_install.sh not found!"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported OS detected: $OS_TYPE"
|
||||
echo "This script supports Linux, macOS, and Windows (via Bash-compatible environments)."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Installation process finished!"
|
||||
Reference in New Issue
Block a user