Skip to content

Commit

Permalink
Switching the architecture from x86 to x64 in the default installation (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
amd64fox authored Jan 15, 2025
1 parent 4396b0c commit e5db5e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e5db5e4

Please sign in to comment.