From a275dfe520c84ab76a9a04d182c8962568c90250 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 17 Jun 2019 22:52:14 +0300 Subject: Update arch handling --- download.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'download.ps1') diff --git a/download.ps1 b/download.ps1 index 4abe754..790b193 100644 --- a/download.ps1 +++ b/download.ps1 @@ -6,17 +6,15 @@ # https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe # https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe.asc -if ($env:PYARCH -eq "amd64") { +if ($env:PYARCH -eq "64") { $filename = "python-${env:PYVERSION}-amd64.exe" - $arch = "64" } else { $filename = "python-${env:PYVERSION}.exe" - $arch = "32" } $url = "https://www.python.org/ftp/python/${env:PYVERSION}/${filename}" $target = $PSScriptRoot + "\" + $filename -$targetdir = $PSScriptRoot + "\Python-${env:PYVERSION}-${arch}" +$targetdir = $PSScriptRoot + "\Python-${env:PYVERSION}-${env:PYARCH}" $logfile = $PSScriptRoot + "\install.log" Write-Output "URL: $url" -- cgit v1.2.3