mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
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:
7
run.ps1
7
run.ps1
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user