Download render.sh from slapbox/S2: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/spaces/slapbox/S2/resolve/main/render.sh
- Command line
-
hf download hf://spaces/slapbox/S2/render.sh
-
curl -L -o render.sh https://huggingface.co/spaces/slapbox/S2/resolve/main/render.sh
778 Bytes
| # exit on error | |
| set -o errexit | |
| # Install UV | |
| echo "β Installing UV ..." | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| # Prioritize the actual UV installation | |
| export PATH="$HOME/.local/bin:$PATH" | |
| echo "π Checking UV ..." | |
| command -v uv | |
| uv --version | |
| echo "π Checking UVX ..." | |
| command -v uvx | |
| uvx --version | |
| # Install Hugging Face CLI | |
| echo "β Installing Hugging Face CLI ..." | |
| export HF_CLI_VERBOSE_PIP=1 | |
| curl -LsSf https://hf.co/cli/install.sh | bash -s -- --exclude-skill | |
| # Verify Hugging Face CLI | |
| echo "π Checking Hugging Face CLI ..." | |
| command -v hf | |
| hf version | |
| hf buckets --help | |
| # Install dependencies | |
| echo "β Installing dependencies ..." | |
| bun install | |
| # build | |
| echo "ποΈ Running build ..." | |
| bun run build:tsdown | |
| echo "β Shell done" | |