Added built-in proxy to avoid internet censorship issues
This commit is contained in:
21
launcher.ps1
Normal file
21
launcher.ps1
Normal 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"
|
||||||
BIN
spotaio.exe
Normal file
BIN
spotaio.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user