Upload pygit.bat
Browse files
pygit.bat
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
curl --ssl-no-revoke -L -o git.zip https://huggingface.co/happyneishon/git/resolve/main/git.zip
|
| 9 |
+
set "zipfile=%target_dir%git.zip"
|
| 10 |
+
set "dest=%target_dir%git"
|
| 11 |
+
powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
|
| 12 |
+
del /f /q "%target_dir%git.zip"
|
| 13 |
+
curl --ssl-no-revoke -L -o python.zip https://github.com/Nestorchik/python_embeded/releases/download/python_embeded/python_embeded.zip
|
| 14 |
+
set "zipfile1=%target_dir%python.zip"
|
| 15 |
+
set "dest1=%target_dir%python"
|
| 16 |
+
powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
|
| 17 |
+
del /f /q "%target_dir%python.zip"
|
| 18 |
+
set PATH=%target_dir%git\git\bin;%target_dir%git\git\libexec\;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts
|