Spaces:
Configuration error
Configuration error
Download scripts/setup-windows.ps1 from UUUZCX/video-optimizer-bot: direct link, hf CLI and curl.
- Browser
- Download file 799 Bytes
-
https://huggingface.co/spaces/UUUZCX/video-optimizer-bot/resolve/main/scripts/setup-windows.ps1
- Command line
-
hf download hf://spaces/UUUZCX/video-optimizer-bot/scripts/setup-windows.ps1
-
curl -L -o setup-windows.ps1 https://huggingface.co/spaces/UUUZCX/video-optimizer-bot/resolve/main/scripts/setup-windows.ps1
799 Bytes
| $ErrorActionPreference = "Stop" | |
| Write-Host "Installing free dependencies with winget..." | |
| winget install OpenJS.NodeJS.LTS --accept-source-agreements --accept-package-agreements | |
| winget install Git.Git --accept-source-agreements --accept-package-agreements | |
| winget install Gyan.FFmpeg --accept-source-agreements --accept-package-agreements | |
| winget install yt-dlp.yt-dlp --accept-source-agreements --accept-package-agreements | |
| winget install Cloudflare.cloudflared --accept-source-agreements --accept-package-agreements | |
| Write-Host "Installing Node packages..." | |
| npm install | |
| npm install -g pm2 | |
| if (!(Test-Path ".env")) { | |
| Copy-Item ".env.example" ".env" | |
| Write-Host "Created .env. Open it and fill TELEGRAM_BOT_TOKEN and ADMIN_TELEGRAM_IDS." | |
| } | |
| Write-Host "Setup finished. Run: .\scripts\health-check.ps1" | |