Add python

This commit is contained in:
doyle 2020-10-21 10:29:27 +11:00
parent 6c2b395e76
commit c94e859a5d
2 changed files with 24 additions and 2 deletions

View File

@ -18,3 +18,6 @@
@echo off @echo off
alias gvim=%cmder_root%\..\GVim\gVimPortable.exe $* alias gvim=%cmder_root%\..\GVim\gVimPortable.exe $*
set PATH=%cmder_root%\bin\python;%PATH%
set HOME=%cmder_root%\..\
set HOMEPATH=%cmder_root%\..\

View File

@ -1,4 +1,6 @@
@echo off @echo off
setlocal
REM REM
REM Cmder REM Cmder
REM REM
@ -18,10 +20,13 @@ if not exist "%cmder_install_path%" Installer\win32_7za.exe x -y -o%cmder_instal
REM REM
REM Cmder User Profile REM Cmder User Profile
REM REM
set cmder_user_profile_install_path=Cmder\config\user_profile.cmd
set cmder_user_profile=Installer\win32_cmder_user_profile.cmd set cmder_user_profile=Installer\win32_cmder_user_profile.cmd
set cmder_user_profile_install_path=%cmder_root%\config
set cmder_user_profile_install_dest=%cmder_user_profile_install_path%\user_profile.cmd
echo - Copy %cmder_user_profile% to %cmder_user_profile_install_path% echo - Copy %cmder_user_profile% to %cmder_user_profile_install_path%
copy /Y %cmder_user_profile% %cmder_user_profile_install_path% > NUL if not exist "%cmder_user_profile_install_path%" mkdir "%cmder_user_profile_install_path%"
copy /Y %cmder_user_profile% %cmder_user_profile_install_dest% > NUL
REM REM
REM GVim REM GVim
@ -71,6 +76,20 @@ if not exist "%clang_format_file%" powershell -Command "[Net.ServicePointManager
echo - Copy Installer\win32_clang_format.exe to %cmder_install_path%\bin\clang-format.exe echo - Copy Installer\win32_clang_format.exe to %cmder_install_path%\bin\clang-format.exe
copy /Y Installer\win32_clang_format.exe %cmder_install_path%\bin\clang-format.exe copy /Y Installer\win32_clang_format.exe %cmder_install_path%\bin\clang-format.exe
REM
REM Python
REM
set python_version=3.6.5
set python_url=https://www.python.org/ftp/python/%python_version%/python-%python_version%-embed-amd64.zip
set python_zip=python-%python_version%-embed-amd64.zip
set python_zip_dest=Installer\%python_zip%
set python_dest=%cmder_root%\bin\python
echo - Downloading from %python_url% to %python_zip_dest%
if not exist "%python_zip_dest%" powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest %python_url% -OutFile %python_zip_dest%"
echo - Unzip %python_zip_dest% to %python_dest%
if not exist "%python_dest%" Installer\win32_7za.exe x -y -o%python_dest% %python_zip_dest% > NUL
REM REM
REM ctags, scanmapset (bind capslock to escape via registry), uncap (bind capslock to escape whilst program running shim) REM ctags, scanmapset (bind capslock to escape via registry), uncap (bind capslock to escape whilst program running shim)
REM REM