happyneishon commited on
Commit
c6773b2
·
verified ·
1 Parent(s): dc7b4c5

Upload 2 files

Browse files
Files changed (2) hide show
  1. menu.bat +148 -0
  2. pygit.bat +35 -0
menu.bat ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
9
+ call :ColorText "==============================================================" "Yellow"
10
+ call :ColorText ".bat file menu for installing custom_nodes by TetaZina" "Green"
11
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
12
+ call :ColorText "==============================================================" "red"
13
+
14
+ :menu
15
+ call :ColorText "========================================" "Cyan"
16
+ call :ColorText "Выберите команду для выполнения:" "Cyan"
17
+ call :ColorText "1. установить ComfyUI-Manager" "blue"
18
+ call :ColorText "2. установить ComfyUI_IPAdapter_plus" "blue"
19
+ call :ColorText "3. установить ComfyUI-Custom-Scripts" "blue"
20
+ call :ColorText "4. установить ComfyUI-SUPIR" "blue"
21
+ call :ColorText "5. установить comfyui-reactor-node" "blue"
22
+ call :ColorText "6. установить ComfyUI-Easy-Use" "blue"
23
+ call :ColorText "7. установить rgthree-comfy" "blue"
24
+ call :ColorText "8. установить comfyui-workspace-manager" "blue"
25
+ call :ColorText "9. установить ComfyUI-Crystools" "blue"
26
+ call :ColorText "a. установить ComfyUI-WD14-Tagger" "blue"
27
+ call :ColorText "b. установить ComfyUI-Impact-Pack" "blue"
28
+ call :ColorText "c. установить ComfyUI-Photopea" "blue"
29
+ call :ColorText "d. установить ComfyUI-CLIPSeg" "blue"
30
+ call :ColorText "e. установить comfyui_controlnet_aux" "blue"
31
+ call :ColorText "f. установить comfyui-inpaint-nodes" "blue"
32
+ call :ColorText "g. Установить все кастомные ноды" "green"
33
+ call :ColorText "h. Пропустить установку кастомных нод" "darkred"
34
+ call :ColorText "========================================" "Cyan"
35
+ choice /c 123456789ABCDEFGH /n /m "Введите ваш выбор: "
36
+
37
+ if errorlevel 17 goto skipall
38
+ if errorlevel 16 goto install_all
39
+ if errorlevel 15 goto command15
40
+ if errorlevel 14 goto command14
41
+ if errorlevel 13 goto command13
42
+ if errorlevel 12 goto command12
43
+ if errorlevel 11 goto command11
44
+ if errorlevel 10 goto command10
45
+ if errorlevel 9 goto command9
46
+ if errorlevel 8 goto command8
47
+ if errorlevel 7 goto command7
48
+ if errorlevel 6 goto command6
49
+ if errorlevel 5 goto command5
50
+ if errorlevel 4 goto command4
51
+ if errorlevel 3 goto command3
52
+ if errorlevel 2 goto command2
53
+ if errorlevel 1 goto command1
54
+
55
+ :check_and_clone
56
+ if exist %custom_n%\%2 (
57
+ call :ColorText "%2 уже установлено, пропуск..." "yellow"
58
+ ) else (
59
+ %target_dir%git\git\bin\git clone %1 %custom_n%\%2
60
+ if exist %custom_n%\%2\requirements.txt (
61
+ %py%python -m pip install -r %custom_n%\%2\requirements.txt
62
+ )
63
+ )
64
+ goto menu
65
+
66
+ :command1
67
+ call :check_and_clone https://github.com/ltdrdata/ComfyUI-Manager ComfyUI-Manager
68
+
69
+ :command2
70
+ call :check_and_clone https://github.com/cubiq/ComfyUI_IPAdapter_plus ComfyUI_IPAdapter_plus
71
+
72
+ :command3
73
+ call :check_and_clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts ComfyUI-Custom-Scripts
74
+
75
+ :command4
76
+ call :check_and_clone https://github.com/kijai/ComfyUI-SUPIR ComfyUI-SUPIR
77
+
78
+ :command5
79
+ call :check_and_clone https://github.com/Gourieff/comfyui-reactor-node comfyui-reactor-node
80
+
81
+ :command6
82
+ call :check_and_clone https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use
83
+
84
+ :command7
85
+ call :check_and_clone https://github.com/rgthree/rgthree-comfy rgthree-comfy
86
+
87
+ :command8
88
+ call :check_and_clone https://github.com/11cafe/comfyui-workspace-manager comfyui-workspace-manager
89
+
90
+ :command9
91
+ call :check_and_clone https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
92
+
93
+ :command10
94
+ call :check_and_clone https://github.com/pythongosssss/ComfyUI-WD14-Tagger ComfyUI-WD14-Tagger
95
+
96
+ :command11
97
+ call :check_and_clone https://github.com/ltdrdata/ComfyUI-Impact-Pack ComfyUI-Impact-Pack
98
+
99
+ :command12
100
+ call :check_and_clone https://github.com/coolzilj/ComfyUI-Photopea ComfyUI-Photopea
101
+
102
+ :command13
103
+ call :check_and_clone https://github.com/time-river/ComfyUI-CLIPSeg ComfyUI-CLIPSeg
104
+
105
+ :command14
106
+ call :check_and_clone https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux
107
+
108
+ :command15
109
+ call :check_and_clone https://github.com/Acly/comfyui-inpaint-nodes comfyui-inpaint-nodes
110
+
111
+ :install_all
112
+ call :check_and_clone https://github.com/ltdrdata/ComfyUI-Manager ComfyUI-Manager
113
+ call :check_and_clone https://github.com/cubiq/ComfyUI_IPAdapter_plus ComfyUI_IPAdapter_plus
114
+ call :check_and_clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts ComfyUI-Custom-Scripts
115
+ call :check_and_clone https://github.com/kijai/ComfyUI-SUPIR ComfyUI-SUPIR
116
+ call :check_and_clone https://github.com/Gourieff/comfyui-reactor-node comfyui-reactor-node
117
+ call :check_and_clone https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use
118
+ call :check_and_clone https://github.com/rgthree/rgthree-comfy rgthree-comfy
119
+ call :check_and_clone https://github.com/11cafe/comfyui-workspace-manager comfyui-workspace-manager
120
+ call :check_and_clone https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
121
+ call :check_and_clone https://github.com/pythongosssss/ComfyUI-WD14-Tagger ComfyUI-WD14-Tagger
122
+ call :check_and_clone https://github.com/ltdrdata/ComfyUI-Impact-Pack ComfyUI-Impact-Pack
123
+ call :check_and_clone https://github.com/coolzilj/ComfyUI-Photopea ComfyUI-Photopea
124
+ call :check_and_clone https://github.com/time-river/ComfyUI-CLIPSeg ComfyUI-CLIPSeg
125
+ call :check_and_clone https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux
126
+ call :check_and_clone https://github.com/Acly/comfyui-inpaint-nodes comfyui-inpaint-nodes
127
+ goto end
128
+
129
+ :skipall
130
+ call :ColorText "Пропуск установки всех команд..." "darkred"
131
+ goto end
132
+
133
+ :end
134
+ call :ColorText "==============================================================" "Yellow"
135
+ call :ColorText ".bat file menu for installing custom_nodes by TetaZina" "Green"
136
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
137
+ call :ColorText "==============================================================" "red"
138
+ call :ColorText "Завершение установки кастомных нод..." "magenta"
139
+ del /f /q %target_dir%testmenu.bat
140
+ exit /b
141
+
142
+ :ColorText
143
+ setlocal
144
+ set text=%~1
145
+ set color=%~2
146
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
147
+ exit /b
148
+ pause
pygit.bat ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ curl --ssl-no-revoke -L -o git.zip https://huggingface.co/happyneishon/git/resolve/main/git.zip
13
+ set "zipfile=%target_dir%git.zip"
14
+ set "dest=%target_dir%git"
15
+ powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
16
+ del /f /q "%target_dir%git.zip"
17
+ curl --ssl-no-revoke -L -o python.zip https://github.com/Nestorchik/python_embeded/releases/download/python_embeded/python_embeded.zip
18
+ set "zipfile1=%target_dir%python.zip"
19
+ set "dest1=%target_dir%python"
20
+ powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
21
+ del /f /q "%target_dir%python.zip"
22
+ set PATH=%target_dir%git\git\bin;%target_dir%git\git\libexec\;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts
23
+ call :ColorText "==============================================================" "Yellow"
24
+ call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
25
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
26
+ call :ColorText "==============================================================" "red"
27
+ exit /b
28
+
29
+ :ColorText
30
+ setlocal
31
+ set text=%~1
32
+ set color=%~2
33
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
34
+ exit /b
35
+ pause