video-optimizer-bot / scripts /setup-windows.ps1
Hugging Face Deployer
Deploy bot to Hugging Face Spaces
03b405b
Raw History Blame Contribute Delete
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"