File size: 2,618 Bytes
9c44229 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
@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
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"
del "%~f0"
exit /b
:ColorText
setlocal
set text=%~1
set color=%~2
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
exit /b
pause |