diff --git a/Install.ps1 b/Install.ps1 index b2864d48..459c6c20 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -263,11 +263,13 @@ if ($psv -ge 7) { function CallLang($clg) { - $urlLang = "https://raw.githubusercontent.com/amd64fox/SpotX/main/scripts/installer-lang/$clg.ps1" + $urlLang = "https://amd64fox.github.io/SpotX/scripts/installer-lang/$clg.ps1" $ProgressPreference = 'SilentlyContinue' try { -(Invoke-WebRequest -useb $urlLang).Content | Invoke-Expression + $response = (iwr -Uri $urlLang -UseBasicParsing).Content + $scriptContent = [System.Text.Encoding]::UTF8.GetString($response) + Invoke-Expression $scriptContent } catch { Write-Host "Error loading $clg language" @@ -285,7 +287,7 @@ $lang = CallLang -clg $langCode # Set variable 'ru'. if ($langCode -eq 'ru') { $ru = $true - $urlru = "https://raw.githubusercontent.com/amd64fox/SpotX/main/patches/Augmented%20translation/ru.json" + $urlru = "https://amd64fox.github.io/SpotX/patches/Augmented%20translation/ru.json" $webjsonru = (Invoke-WebRequest -useb -Uri $urlru).Content | ConvertFrom-Json } @@ -352,7 +354,7 @@ $online = ($onlineFull -split ".g")[0] # Sending a statistical web query to cutt.ly $ErrorActionPreference = 'SilentlyContinue' -$cutt_url = "https://cutt.ly/DK8UQub" +$cutt_url = "https://cutt.ly/rwl6sXuQ" $retries = 0 while ($retries -lt 2) { @@ -871,7 +873,7 @@ if ($ch -eq 'n') { $ch = $null -$url = "https://raw.githubusercontent.com/amd64fox/SpotX/main/patches/patches.json" +$url = "https://amd64fox.github.io/SpotX/patches/patches.json" $retries = 0 while ($retries -lt 3) { diff --git a/Install_New_theme.bat b/Install_New_theme.bat index 837e501f..2cd39232 100644 --- a/Install_New_theme.bat +++ b/Install_New_theme.bat @@ -1,6 +1,6 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -new_theme """" | Invoke-Expression" +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://amd64fox.github.io/SpotX/Install.ps1')} -new_theme """" | Invoke-Expression" pause exit /b \ No newline at end of file diff --git a/Install_Old_theme.bat b/Install_Old_theme.bat index c9804f83..704fdbce 100644 --- a/Install_Old_theme.bat +++ b/Install_Old_theme.bat @@ -1,6 +1,6 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on """" | Invoke-Expression" +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://amd64fox.github.io/SpotX/Install.ps1')} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on """" | Invoke-Expression" pause exit /b \ No newline at end of file diff --git a/README.md b/README.md index 7326e9c2..a15fd2f9 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -new_theme" +[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://amd64fox.github.io/SpotX/Install.ps1') } -new_theme" ``` @@ -72,7 +72,7 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on" +[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://amd64fox.github.io/SpotX/Install.ps1') } -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on" ``` @@ -101,7 +101,7 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify" +[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://amd64fox.github.io/SpotX/Install.ps1') } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify" ``` @@ -127,7 +127,7 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -premium -new_theme" +[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://amd64fox.github.io/SpotX/Install.ps1') } -premium -new_theme" ``` diff --git a/.github/cutt/test-cutt.txt b/cutt/test-cutt.txt similarity index 100% rename from .github/cutt/test-cutt.txt rename to cutt/test-cutt.txt diff --git a/scripts/Install_Auto.bat b/scripts/Install_Auto.bat index f56c24a0..f166deec 100644 --- a/scripts/Install_Auto.bat +++ b/scripts/Install_Auto.bat @@ -1,6 +1,6 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify """" | Invoke-Expression" +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://amd64fox.github.io/SpotX/Install.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" pause exit /b \ No newline at end of file diff --git a/scripts/Install_Prem.bat b/scripts/Install_Prem.bat index 7fd9d01f..3efea67d 100644 --- a/scripts/Install_Prem.bat +++ b/scripts/Install_Prem.bat @@ -1,6 +1,6 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -premium -new_theme """" | Invoke-Expression" +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://amd64fox.github.io/SpotX/Install.ps1')} -premium -new_theme """" | Invoke-Expression" pause exit /b \ No newline at end of file