Spaces:
Paused
Paused
Download entrypoint.sh from haxwitcher/GOLDtest: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/spaces/haxwitcher/GOLDtest/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/haxwitcher/GOLDtest/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/haxwitcher/GOLDtest/resolve/main/entrypoint.sh
573 Bytes
| set -e | |
| # 1) Provera: da li je GITHUB_TOKEN postavljen? | |
| if [ -z "$GITHUB_TOKEN" ]; then | |
| echo "[entrypoint] GITHUB_TOKEN nije postavljen. Prekidam." | |
| exit 1 | |
| fi | |
| # 2) Kloniranje u /tmp/app (pisiva lokacija) | |
| echo "[entrypoint] Kloniram privatni GitHub repo u /tmp/app..." | |
| git clone --depth 1 "https://$GITHUB_TOKEN@github.com/HaxWitcher/gold.git" /tmp/app | |
| # 3) Instalacija zavisnosti | |
| echo "[entrypoint] Instaliram Node.js zavisnosti..." | |
| cd /tmp/app | |
| npm install --production | |
| # 4) Pokretanje addona | |
| echo "[entrypoint] Pokrećem Stremio addon server..." | |
| npm start | |