mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-23 19:40:19 +10:00
fix to check the recommended version
This commit is contained in:
@@ -509,12 +509,8 @@ function DesktopFolder {
|
|||||||
return $desktop_folder
|
return $desktop_folder
|
||||||
}
|
}
|
||||||
|
|
||||||
# Checking the recommended version for spotx
|
# Recommended version for spotx
|
||||||
$ProgressPreference = 'SilentlyContinue' # Hiding Progress Bars
|
$online = "1.1.99.878"
|
||||||
$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'
|
|
||||||
|
|
||||||
# Check version Spotify offline
|
# Check version Spotify offline
|
||||||
$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion
|
$offline = (Get-Item $spotifyExecutable).VersionInfo.FileVersion
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<h1>System requirements</h1>
|
<h1>System requirements</h1>
|
||||||
|
|
||||||
- <strong>OS: Windows 7-11</strong>
|
- <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>For Windows Desktop only (Microsoft store version is not suitable).</strong>
|
||||||
- <strong>PowerShell: 3 or higher</strong>
|
- <strong>PowerShell: 3 or higher</strong>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user