mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-01-09 19:07:45 +01:00
Update MakeInstall.bat
This commit is contained in:
parent
f2dcbab32a
commit
906a98c208
@ -115,7 +115,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
|
||||||
)
|
)
|
||||||
@ -154,7 +154,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
|
||||||
|
Loading…
Reference in New Issue
Block a user