Spaces:
Runtime error
Runtime error
Download scripts/fetch_tailwind.sh from BattleFiven/ai-tester-platform: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/BattleFiven/ai-tester-platform/resolve/main/scripts/fetch_tailwind.sh
- Command line
-
hf download hf://spaces/BattleFiven/ai-tester-platform/scripts/fetch_tailwind.sh
-
curl -L -o fetch_tailwind.sh https://huggingface.co/spaces/BattleFiven/ai-tester-platform/resolve/main/scripts/fetch_tailwind.sh
1.13 kB
| # Scarica il binario standalone di Tailwind CSS (nessun Node richiesto). | |
| # Il binario viene scaricato in tools/tailwindcss/<os>-<arch>/tailwindcss | |
| # e NON viene committato (cfr. .gitignore). | |
| set -euo pipefail | |
| VERSION="${TAILWIND_VERSION:-v3.4.14}" | |
| ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" | |
| OUT_DIR="$ROOT_DIR/tools/tailwindcss" | |
| uname_os=$(uname -s | tr '[:upper:]' '[:lower:]') | |
| uname_arch=$(uname -m) | |
| case "$uname_os" in | |
| darwin) os="macos" ;; | |
| linux) os="linux" ;; | |
| *) echo "OS non supportato: $uname_os" >&2; exit 1 ;; | |
| esac | |
| case "$uname_arch" in | |
| x86_64|amd64) arch="x64" ;; | |
| arm64|aarch64) arch="arm64" ;; | |
| *) echo "Architettura non supportata: $uname_arch" >&2; exit 1 ;; | |
| esac | |
| platform_dir="$OUT_DIR/$os-$arch" | |
| binary="$platform_dir/tailwindcss" | |
| if [[ -x "$binary" ]]; then | |
| echo "Tailwind CLI già presente: $binary" | |
| exit 0 | |
| fi | |
| mkdir -p "$platform_dir" | |
| url="https://github.com/tailwindlabs/tailwindcss/releases/download/$VERSION/tailwindcss-$os-$arch" | |
| echo "Scarico Tailwind CLI $VERSION da $url" | |
| curl -fsSL -o "$binary" "$url" | |
| chmod +x "$binary" | |
| echo "Installato: $binary" | |