-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.ps1
27 lines (22 loc) · 1 KB
/
setup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Check if Chocolatey is installed
if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {
Write-Host "Installing Chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
# Install system dependencies
Write-Host "Installing FFmpeg and yt-dlp..."
choco install ffmpeg -y
choco install yt-dlp -y
# Install Poetry if not already installed
if (!(Get-Command poetry -ErrorAction SilentlyContinue)) {
Write-Host "Installing Poetry..."
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
}
# Install project dependencies
Write-Host "Installing project dependencies..."
poetry install
# execute installation script 'install_service.bat', run as administrator
& "$PSScriptRoot\install_service.bat"
Write-Host "Setup complete!"