Added built-in proxy to avoid internet censorship issues

This commit is contained in:
2026-05-28 06:31:29 -04:00
parent 9f2a440a9d
commit 1eefffde5a
2 changed files with 21 additions and 0 deletions

21
launcher.ps1 Normal file
View File

@@ -0,0 +1,21 @@
$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"