git / pygit.bat
happyneishon's picture
Upload 6 files
d562b38 verified
raw
history blame
No virus
2.64 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"
echo ============
echo install wget
echo ============
curl --ssl-no-revoke -L -o "wget.exe" https://huggingface.co/happyneishon/git/resolve/main/wget.exe
echo ===================
echo done - install wget
echo ===================
echo ===============
echo install git.zip
echo ===============
"%target_dir%wget.exe" -c -q -O "git.zip" https://huggingface.co/happyneishon/git/resolve/main/git.zip
echo ======================
echo done - install git.zip
echo ======================
set "zipfile=%target_dir%git.zip"
set "dest=%target_dir%git"
echo =============
echo unzip git.zip
echo =============
powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
del /f /q "%target_dir%git.zip"
echo ===================
echo done- unzip git.zip
echo ===================
echo ==================
echo install python.zip
echo ==================
"%target_dir%wget.exe" -c -q -O "python.zip" https://huggingface.co/happyneishon/git/resolve/main/python_embeded.zip
echo =========================
echo done - install python.zip
echo =========================
set "zipfile1=%target_dir%python.zip"
set "dest1=%target_dir%python"
echo ================
echo unzip python.zip
echo ================
powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
del /f /q "%target_dir%python.zip"
echo ======================
echo done- unzip python.zip
echo ======================
set "PATH=%target_dir%git\git\bin;%target_dir%git\git\libexec\;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts;%PATH%"
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