git / pygit.bat
happyneishon's picture
Upload 2 files
c6773b2 verified
raw
history blame
No virus
1.77 kB
@echo off
setlocal
cd /d %~dp0
set target_dir=%~dp0
chcp 65001 > nul
set custom_n=%target_dir%ComfyUI\custom_nodes
set py=%target_dir%python\
call :ColorText "==============================================================" "Yellow"
call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
call :ColorText "==============================================================" "red"
curl --ssl-no-revoke -L -o git.zip https://huggingface.co/happyneishon/git/resolve/main/git.zip
set "zipfile=%target_dir%git.zip"
set "dest=%target_dir%git"
powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
del /f /q "%target_dir%git.zip"
curl --ssl-no-revoke -L -o python.zip https://github.com/Nestorchik/python_embeded/releases/download/python_embeded/python_embeded.zip
set "zipfile1=%target_dir%python.zip"
set "dest1=%target_dir%python"
powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
del /f /q "%target_dir%python.zip"
set PATH=%target_dir%git\git\bin;%target_dir%git\git\libexec\;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts
call :ColorText "==============================================================" "Yellow"
call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
call :ColorText "==============================================================" "red"
exit /b
:ColorText
setlocal
set text=%~1
set color=%~2
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
exit /b
pause