Switching the architecture from x86 to x64 in the default installation (#659)

* Transition to the x64 architecture installation

Transition to the x64 architecture installation for versions above 1.2.53

* fixed link

* simplification of the condition

- simplification of the condition
- change of the version of the latest x86 build

* removing the unnecessary hash table.
This commit is contained in:
amd64fox
2025-01-15 17:12:03 +03:00
committed by GitHub
parent 4396b0ca5d
commit e5db5e43b4

View File

@@ -482,7 +482,12 @@ function downloadSp() {
Import-Module BitsTransfer
$web_Url = "https://download.scdn.co/upgrade/client/win32-x86/spotify_installer-$onlineFull.exe"
$max_x86 = [Version]"1.2.53"
$versionParts = $onlineFull -split '\.'
$short = [Version]"$($versionParts[0]).$($versionParts[1]).$($versionParts[2])"
$arch = if ($short -le $max_x86) { "win32-x86" } else { "win32-x86_64" }
$web_Url = "https://download.scdn.co/upgrade/client/$arch/spotify_installer-$onlineFull.exe"
$local_Url = "$PWD\SpotifySetup.exe"
$web_name_file = "SpotifySetup.exe"