fixed README, and fixed install script to include an assets dir

This commit is contained in:
klein panic
2024-10-02 00:05:32 -04:00
parent 803ca735a7
commit cf716a879a

View File

@@ -17,6 +17,10 @@ check_venv() {
fi fi
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
# MacOS # MacOS
if ! command -v brew &> /dev/null; then
echo "Homebrew not found. Please install Homebrew from https://brew.sh/"
exit 1
fi
brew install python3 brew install python3
elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then
# Windows # Windows
@@ -68,10 +72,21 @@ setup_venv() {
deactivate deactivate
} }
# Create assets directory
create_assets_directory() {
if [[ ! -d "assets" ]]; then
echo "Creating 'assets' directory..."
mkdir assets
echo "'assets' directory created."
else
echo "'assets' directory already exists."
fi
}
# Run the checks and setup # Run the checks and setup
check_venv check_venv
check_binaries check_binaries
setup_venv setup_venv
create_assets_directory
echo "Installation completed successfully." echo "Installation completed successfully."