Upload pygit.bat
Browse files
pygit.bat
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
cd /d %~dp0
|
| 4 |
+
set target_dir=%~dp0
|
| 5 |
+
chcp 65001 > nul
|
| 6 |
+
set custom_n=%target_dir%ComfyUI\custom_nodes
|
| 7 |
+
set py=%target_dir%python\
|
| 8 |
+
call :ColorText "==============================================================" "Yellow"
|
| 9 |
+
call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
|
| 10 |
+
call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
|
| 11 |
+
call :ColorText "==============================================================" "red"
|
| 12 |
+
echo ============
|
| 13 |
+
echo install wget
|
| 14 |
+
echo ============
|
| 15 |
+
curl --ssl-no-revoke -L -o wget.exe https://huggingface.co/happyneishon/git/resolve/main/wget.exe
|
| 16 |
+
echo ===================
|
| 17 |
+
echo done - install wget
|
| 18 |
+
echo ===================
|
| 19 |
+
echo ===============
|
| 20 |
+
echo install git.zip
|
| 21 |
+
echo ===============
|
| 22 |
+
%target_dir%wget.exe -c -q -O git.zip https://huggingface.co/happyneishon/git/resolve/main/git.zip
|
| 23 |
+
echo ======================
|
| 24 |
+
echo done - install git.zip
|
| 25 |
+
echo ======================
|
| 26 |
+
set "zipfile=%target_dir%git.zip"
|
| 27 |
+
set "dest=%target_dir%git"
|
| 28 |
+
echo =============
|
| 29 |
+
echo unzip git.zip
|
| 30 |
+
echo =============
|
| 31 |
+
powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
|
| 32 |
+
del /f /q "%target_dir%git.zip"
|
| 33 |
+
echo ===================
|
| 34 |
+
echo done- unzip git.zip
|
| 35 |
+
echo ===================
|
| 36 |
+
echo ==================
|
| 37 |
+
echo install python.zip
|
| 38 |
+
echo ==================
|
| 39 |
+
%target_dir%wget.exe -c -q -O python.zip https://huggingface.co/happyneishon/git/resolve/main/python_embeded.zip
|
| 40 |
+
echo =========================
|
| 41 |
+
echo done - install python.zip
|
| 42 |
+
echo =========================
|
| 43 |
+
set "zipfile1=%target_dir%python.zip"
|
| 44 |
+
set "dest1=%target_dir%python"
|
| 45 |
+
echo ================
|
| 46 |
+
echo unzip python.zip
|
| 47 |
+
echo ================
|
| 48 |
+
powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
|
| 49 |
+
del /f /q "%target_dir%python.zip"
|
| 50 |
+
echo ======================
|
| 51 |
+
echo done- unzip python.zip
|
| 52 |
+
echo ======================
|
| 53 |
+
set PATH=%target_dir%git\git\bin;%target_dir%git\git\libexec\;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts
|
| 54 |
+
call :ColorText "==============================================================" "Yellow"
|
| 55 |
+
call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
|
| 56 |
+
call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
|
| 57 |
+
call :ColorText "==============================================================" "red"
|
| 58 |
+
del "%~f0"
|
| 59 |
+
exit /b
|
| 60 |
+
|
| 61 |
+
:ColorText
|
| 62 |
+
setlocal
|
| 63 |
+
set text=%~1
|
| 64 |
+
set color=%~2
|
| 65 |
+
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
|
| 66 |
+
exit /b
|
| 67 |
+
pause
|