22 lines
614 B
PowerShell
22 lines
614 B
PowerShell
$env:HTTP_PROXY = "http://51.38.191.151:443"
|
|
$env:HTTPS_PROXY = "http://51.38.191.151:443"
|
|
|
|
Start-Transcript ".\log.txt" -Force
|
|
$ErrorActionPreference = "Continue"
|
|
|
|
try {
|
|
iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex
|
|
|
|
iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/SpotX/refs/heads/main/run.ps1') } -new_theme"
|
|
}
|
|
catch {
|
|
Write-Host "`n===== ERROR ====="
|
|
$_ | Format-List * -Force
|
|
}
|
|
finally {
|
|
Remove-Item Env:HTTP_PROXY,Env:HTTPS_PROXY -ea 0
|
|
Stop-Transcript
|
|
}
|
|
|
|
Read-Host "Done. Log saved to $PWD\log.txt`nPress Enter to close"
|