Update gibMacOS.bat

This commit is contained in:
CorpNewt 2019-03-29 22:54:23 -05:00 committed by GitHub
parent 906a98c208
commit e183a6d9e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ echo # Installing Python #
echo ### ### echo ### ###
echo. echo.
echo Gathering info from https://www.python.org/downloads/windows/... echo Gathering info from https://www.python.org/downloads/windows/...
powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www.python.org/downloads/windows/','%TEMP%\pyurl.txt')" powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object System.Net.WebClient).DownloadFile('https://www.python.org/downloads/windows/','%TEMP%\pyurl.txt')"
if not exist "%TEMP%\pyurl.txt" ( if not exist "%TEMP%\pyurl.txt" (
goto checkpy goto checkpy
) )
@ -128,7 +128,7 @@ REM At this point - we should have the version number.
REM We can build the url like so: "https://www.python.org/ftp/python/[version]/python-[version]-amd64.exe" REM We can build the url like so: "https://www.python.org/ftp/python/[version]/python-[version]-amd64.exe"
set "url=https://www.python.org/ftp/python/!release!/python-!release!-amd64.exe" set "url=https://www.python.org/ftp/python/!release!/python-!release!-amd64.exe"
REM Now we download it with our slick powershell command REM Now we download it with our slick powershell command
powershell -command "(new-object System.Net.WebClient).DownloadFile('!url!','%TEMP%\pyinstall.exe')" powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object System.Net.WebClient).DownloadFile('!url!','%TEMP%\pyinstall.exe')"
REM If it doesn't exist - we bail REM If it doesn't exist - we bail
if not exist "%TEMP%\pyinstall.exe" ( if not exist "%TEMP%\pyinstall.exe" (
goto checkpy goto checkpy