mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
fix to check the recommended version
This commit is contained in:
@@ -509,12 +509,8 @@ function DesktopFolder {
|
||||
return $desktop_folder
|
||||
}
|
||||
|
||||
# Checking the recommended version for spotx
|
||||
$ProgressPreference = 'SilentlyContinue' # Hiding Progress Bars
|
||||
$readme = Invoke-WebRequest -UseBasicParsing -Uri https://raw.githubusercontent.com/SpotX-CLI/SpotX-Win/main/README.md
|
||||
$match = $readme.RawContent | Select-String "Recommended official version \[\d+\.\d+\.\d+\.\d+\]" -AllMatches
|
||||
$ver = $match.Matches.Value
|
||||
$online = $ver -replace 'Recommended official version \[(\d+\.\d+\.\d+\.\d+)\]', '$1'
|
||||
# Recommended version for spotx
|
||||
$online = "1.1.99.878"
|
||||
|
||||
# Check version Spotify offline
|
||||
$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<h1>System requirements</h1>
|
||||
|
||||
- <strong>OS: Windows 7-11</strong>
|
||||
- <strong>Spotify: Recommended official version [1.1.99.878](https://cutt.ly/8EH6NuH)</strong>
|
||||
- <strong>Spotify: latest official [versions](https://cutt.ly/8EH6NuH)</strong>
|
||||
- <strong>For Windows Desktop only (Microsoft store version is not suitable).</strong>
|
||||
- <strong>PowerShell: 3 or higher</strong>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user