@@ -6,7 +6,7 @@ function Install-SpotX {
66 Clear-Host
77 Write-Log - Message " Installing SpotX..." - Level INFO
88 try {
9- $scriptContent = ( Invoke-WebRequest - UseBasicParsing https:// raw.githubusercontent.com / SpotX- Official/ spotx- official.github.io/ main/ run.ps1 - ErrorAction Stop).Content
9+ $scriptContent = Invoke-RestMethod - Uri https:// raw.githubusercontent.com / SpotX- Official/ spotx- official.github.io/ main/ run.ps1 - ErrorAction Stop
1010 Invoke-Expression $scriptContent
1111 Write-Log - Message " SpotX installed successfully." - Level SUCCESS
1212 } catch {
@@ -19,7 +19,7 @@ function Install-Spicetify {
1919 Clear-Host
2020 Write-Log - Message " Installing Spicetify..." - Level INFO
2121 try {
22- Invoke-Expression (Invoke-WebRequest - UseBasicParsing https:// raw.githubusercontent.com / spicetify/ cli/ main/ install.ps1)
22+ Invoke-Expression (Invoke-RestMethod - Uri https:// raw.githubusercontent.com / spicetify/ cli/ main/ install.ps1)
2323 Write-Log - Message " Spicetify installed successfully." - Level SUCCESS
2424 } catch {
2525 Write-Log - Message " Failed to install Spicetify: $ ( $_.Exception.Message ) " - Level ERROR
@@ -31,7 +31,7 @@ function Install-Steam {
3131 Clear-Host
3232 Write-Log - Message " Installing Steam Millennium..." - Level INFO
3333 try {
34- Invoke-Expression (Invoke-WebRequest - UseBasicParsing ' https://steambrew.app/install.ps1' )
34+ Invoke-Expression (Invoke-RestMethod - Uri ' https://steambrew.app/install.ps1' )
3535 Write-Log - Message " Steam Millennium installed successfully." - Level SUCCESS
3636 } catch {
3737 Write-Log - Message " Failed to install Steam Millennium. Make sure Steam is installed." - Level ERROR
@@ -49,7 +49,7 @@ function Install-Steam {
4949 if ($installChoice -eq ' y' ) {
5050 Write-Log - Message " Installing Space Theme..." - Level INFO
5151 try {
52- Invoke-Expression (Invoke-WebRequest - UseBasicParsing ' https://spacetheme.de/steam.ps1' )
52+ Invoke-Expression (Invoke-RestMethod - Uri ' https://spacetheme.de/steam.ps1' )
5353 Write-Log - Message " Space Theme installed successfully." - Level SUCCESS
5454 } catch {
5555 Write-Log - Message " Failed to install Space Theme through the main method." - Level ERROR
0 commit comments