mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-15 03:46:32 +10:00
Update
- up 1.1.90.859 - improved algorithm for restoring files when refusing to re-block updates
This commit is contained in:
+18
-1
@@ -325,6 +325,7 @@ catch {
|
||||
$spotifyDirectory = "$env:APPDATA\Spotify"
|
||||
$spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify"
|
||||
$spotifyExecutable = "$spotifyDirectory\Spotify.exe"
|
||||
$exe_bak = "$spotifyDirectory\Spotify.bak"
|
||||
$chrome_elf = "$spotifyDirectory\chrome_elf.dll"
|
||||
$chrome_elf_bak = "$spotifyDirectory\chrome_elf_bak.dll"
|
||||
$cache_folder = "$env:APPDATA\Spotify\cache"
|
||||
@@ -361,6 +362,11 @@ function Check_verison_clients($param2) {
|
||||
$check_offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion
|
||||
return $check_offline
|
||||
}
|
||||
# Check version Spotify.bak
|
||||
if ($param2 -eq "Spotify.bak") {
|
||||
$check_offline_bak = (Get-Item $exe_bak).VersionInfo.FileVersion
|
||||
return $check_offline_bak
|
||||
}
|
||||
}
|
||||
function unlockFolder {
|
||||
|
||||
@@ -814,6 +820,16 @@ if (!($block_update_on) -and !($block_update_off)) {
|
||||
}
|
||||
if ($ch -eq 'y') { $block_update = $true }
|
||||
|
||||
if ($ch -eq 'n') {
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
$exe_onl_fn = Check_verison_clients -param2 "offline"
|
||||
$exe_bak_fn = Check_verison_clients -param2 'Spotify.bak'
|
||||
if ((Test-Path -LiteralPath $exe_bak) -and $exe_onl_fn -eq $exe_bak_fn) {
|
||||
Remove-Item $spotifyExecutable -Recurse -Force
|
||||
Rename-Item $exe_bak $spotifyExecutable
|
||||
}
|
||||
}
|
||||
|
||||
$ch = $null
|
||||
|
||||
if ($cache_on) {
|
||||
@@ -1460,7 +1476,6 @@ if ($block_update) {
|
||||
|
||||
if ($update_test_exe) {
|
||||
$exe = "$env:APPDATA\Spotify\Spotify.exe"
|
||||
$exe_bak = "$env:APPDATA\Spotify\Spotify.bak"
|
||||
$ANSI = [Text.Encoding]::GetEncoding(1251)
|
||||
$old = [IO.File]::ReadAllText($exe, $ANSI)
|
||||
|
||||
@@ -1468,6 +1483,8 @@ if ($block_update) {
|
||||
Write-Host ($lang).UpdateBlocked`n
|
||||
}
|
||||
elseif ($old -match "(?<=wg:\/\/desktop-update\/.)2(\/update)") {
|
||||
Remove-Item $exe_bak -Recurse -Force
|
||||
Start-Sleep -Milliseconds 150
|
||||
copy-Item $exe $exe_bak
|
||||
$new = $old -replace "(?<=wg:\/\/desktop-update\/.)2(\/update)", '7/update'
|
||||
[IO.File]::WriteAllText($exe, $new, $ANSI)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<h1>System requirements</h1>
|
||||
|
||||
- <strong>OS: Windows 7-11</strong>
|
||||
- <strong>Spotify: Recommended official version [1.1.90.855](https://cutt.ly/8EH6NuH)</strong>
|
||||
- <strong>Spotify: Recommended official version [1.1.90.859](https://cutt.ly/8EH6NuH)</strong>
|
||||
- <strong>For Windows Desktop only (Microsoft store version is not suitable).</strong>
|
||||
- <strong>PowerShell: 3 or higher</strong>
|
||||
|
||||
@@ -42,17 +42,17 @@
|
||||
<details>
|
||||
<summary><small>Usual installation</small></summary><p>
|
||||
|
||||
<h4>During installation, you need to confirm some actions, also contains:</h4>
|
||||
#### During installation, you need to confirm some actions, also contains:
|
||||
|
||||
- All [experimental features](https://github.com/amd64fox/SpotX/discussions/50) included
|
||||
|
||||
<h4> </h4>
|
||||
|
||||
* Just download and run [Install.bat](https://raw.githack.com/amd64fox/SpotX/main/Install.bat)
|
||||
#### Just download and run [Install.bat](https://raw.githack.com/amd64fox/SpotX/main/Install.bat)
|
||||
|
||||
or
|
||||
|
||||
- Run The following command in PowerShell:
|
||||
#### Run The following command in PowerShell:
|
||||
|
||||
```ps1
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content | iex
|
||||
@@ -63,7 +63,7 @@ or
|
||||
<details>
|
||||
<summary><small>Automated basic installation</small></summary><p>
|
||||
|
||||
<h4>Automated basic installation without confirmation, what does it do?</h4>
|
||||
#### Automated basic installation without confirmation, what does it do?
|
||||
|
||||
- Automatic removal of Spotify MS if it was found
|
||||
- Automatic installation of the recommended version of Spotify (if another client has already been found, it will be installed over)
|
||||
@@ -71,11 +71,11 @@ or
|
||||
|
||||
<h4> </h4>
|
||||
|
||||
- Just download and run [Install_Basic.bat](https://raw.githack.com/amd64fox/SpotX/main/scripts/Install_Basic.bat)
|
||||
#### Just download and run [Install_Basic.bat](https://raw.githack.com/amd64fox/SpotX/main/scripts/Install_Basic.bat)
|
||||
|
||||
or
|
||||
|
||||
- Run The following command in PowerShell:
|
||||
#### Run The following command in PowerShell:
|
||||
|
||||
```ps1
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_on -cache_off -block_update_off -exp_standart -hide_col_icon_off -start_spoti"
|
||||
@@ -97,11 +97,11 @@ or
|
||||
|
||||
<h4> </h4>
|
||||
|
||||
- Just download and run [Install_Auto.bat](https://raw.githack.com/amd64fox/SpotX/main/scripts/Install_Auto.bat)
|
||||
#### Just download and run [Install_Auto.bat](https://raw.githack.com/amd64fox/SpotX/main/scripts/Install_Auto.bat)
|
||||
|
||||
or
|
||||
|
||||
- Run The following command in PowerShell:
|
||||
#### Run The following command in PowerShell:
|
||||
|
||||
```ps1
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -cache_off -block_update_on -start_spoti"
|
||||
@@ -111,7 +111,7 @@ or
|
||||
<details>
|
||||
<summary><small>Installing with Scoop</small></summary><p>
|
||||
|
||||
<h4>Installing SpotX via the Scoop package manager includes:</h4>
|
||||
#### Installing SpotX via the Scoop package manager includes:
|
||||
|
||||
- Automatic removal of Spotify MS if it was found
|
||||
- Automatic installation of the recommended version of Spotify (if another client has already been found, it will be installed over)
|
||||
@@ -121,19 +121,19 @@ or
|
||||
|
||||
<h4> </h4>
|
||||
|
||||
<h4>Installing SpotX with Scoop</h4>
|
||||
#### Installing SpotX with Scoop
|
||||
Just run these commands in the command prompt or powershell:
|
||||
|
||||
<br>
|
||||
<br>```scoop bucket add nonportable```
|
||||
<br>```scoop install spotx-np```
|
||||
|
||||
<h4>Updating SpotX with Scoop</h4>
|
||||
#### Updating SpotX with Scoop
|
||||
|
||||
To update SpotX or check for updates run this command in the command prompt or powershell:
|
||||
|
||||
```scoop update spotx-np```
|
||||
|
||||
<h4>Uninstalling SpotX with Scoop</h4>
|
||||
#### Uninstalling SpotX with Scoop
|
||||
|
||||
To fully uninstall SpotX and Spotify run this command in the command prompt or powershell:
|
||||
|
||||
@@ -144,17 +144,17 @@ To fully uninstall SpotX and Spotify run this command in the command prompt or p
|
||||
<details>
|
||||
<summary><small>Installation for premium</small></summary><p>
|
||||
|
||||
<h4>Usual installation only without ad blocking, for those who have a premium account, also contains:</h4>
|
||||
#### Usual installation only without ad blocking, for those who have a premium account, also contains:
|
||||
|
||||
- All [experimental features](https://github.com/amd64fox/SpotX/discussions/50) included
|
||||
|
||||
<h4> </h4>
|
||||
|
||||
* Just download and run [Install_Prem.bat](https://raw.githack.com/amd64fox/SpotX/main/scripts/Install_Prem.bat)
|
||||
#### Just download and run [Install_Prem.bat](https://raw.githack.com/amd64fox/SpotX/main/scripts/Install_Prem.bat)
|
||||
|
||||
or
|
||||
|
||||
- Run The following command in PowerShell:
|
||||
#### Run The following command in PowerShell:
|
||||
|
||||
```ps1
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -premium"
|
||||
|
||||
Reference in New Issue
Block a user