diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2019-06-17 22:52:14 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2019-06-17 22:52:14 +0300 |
| commit | a275dfe520c84ab76a9a04d182c8962568c90250 (patch) | |
| tree | d3671773d4a9db29e4a89aced4ef9f1e9db1e24e | |
| parent | 4268d43c8d5a91422965b80051cbcabade6a4829 (diff) | |
| download | portablepython-a275dfe520c84ab76a9a04d182c8962568c90250.tar.gz portablepython-a275dfe520c84ab76a9a04d182c8962568c90250.zip | |
Update arch handling
| -rw-r--r-- | download.ps1 | 6 |
1 files changed, 2 insertions, 4 deletions
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" |
