From 7135a6a3ecc0cece9b87398d53b47e9686d2c7a3 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:22:39 +0300 Subject: [PATCH] backup url added #548 --- scripts/Install_Auto.bat | 10 +++++++++- scripts/Install_Prem.bat | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/scripts/Install_Auto.bat b/scripts/Install_Auto.bat index 77eaf4d6..808a2b91 100644 --- a/scripts/Install_Auto.bat +++ b/scripts/Install_Auto.bat @@ -1,6 +1,14 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://spotx-official.github.io/run.ps1')} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify """" | Invoke-Expression" +:: Line for changing spotx parameters, each parameter should be separated by a space +set param=-confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify + +set url='https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1' +set url2='https://spotx-official.github.io/run.ps1' +set tls=[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; + +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe ^ +-Command %tls% $p='%param%'; """ & { $(try { iwr -useb %url% } catch { $p+= ' -m'; iwr -useb %url2% })} $p """" | iex pause exit /b \ No newline at end of file diff --git a/scripts/Install_Prem.bat b/scripts/Install_Prem.bat index e2550055..39c895aa 100644 --- a/scripts/Install_Prem.bat +++ b/scripts/Install_Prem.bat @@ -1,6 +1,14 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://spotx-official.github.io/run.ps1')} -premium -new_theme """" | Invoke-Expression" +:: Line for changing spotx parameters, each parameter should be separated by a space +set param=-premium -new_theme + +set url='https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1' +set url2='https://spotx-official.github.io/run.ps1' +set tls=[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; + +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe ^ +-Command %tls% $p='%param%'; """ & { $(try { iwr -useb %url% } catch { $p+= ' -m'; iwr -useb %url2% })} $p """" | iex pause exit /b \ No newline at end of file