Skip to content

Commit

Permalink
Добавление новых версий файлов
Browse files Browse the repository at this point in the history
  • Loading branch information
Nestorchik committed Sep 10, 2024
1 parent 661b6a1 commit 8d4c0f4
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 13 deletions.
10 changes: 0 additions & 10 deletions download_unzip_and_delete.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
cls
write-host ----------------------------------------------------------------------------------------
write-host Download GIT...
Invoke-WebRequest https://github.com/Nestorchik/git/releases/download/git_portable/git.zip -OutFile git.zip
write-host Done
write-host ----------------------------------------------------------------------------------------
write-host UnZip...
Expand-Archive -Force git.zip git_folder
write-host Done
wrire-hist --- REMEMBER SET PATH set GIT_EXEC_PATH=%curDir%git\bin;%curDir%git\libexec;%curDir%git\libexec\git-core
write-host ----------------------------------------------------------------------------------------
write-host Delete tmp files...
Remove-Item git.zip
write-host Done
write-host ----------------------------------------------------------------------------------------
cmd /c pause
90 changes: 90 additions & 0 deletions install_ComfyUI_portable_python310_torch_cuda124_RUS.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@echo off
setlocal
cd /d %~dp0
set curDir=%~dp0
echo ========================================================================================================
echo â®â áªà¨¯â ᪠砥⠨ ãáâ ­®¢¨â ¢ ⥪ãéãî ¯ ¯ªã ¯®àâ ¡¥«ì­ãî ¢¥àá¨î ComfyUI
echo á ¯®àâ ¡¥«ì­ë¬ ¯¨â®­®¬ ¨ GIT, ãáâ ­®¢¨â ¢á¥ ¯ ª¥âë ¯¨â®­  ¤«ï ª àâ NVIDIA
echo ¨ ᣥ­¥à¨àã¥â ä ©« § ¯ã᪠ ¨­â¥àä¥©á  ComfyUI
echo ---------------------------------------------
echo “¡¥¤¨áì, çâ® ¢ í⮩ ¯ ¯ª¥ ­¨ç¥£® ­ã¦­®£® ­¥â,
echo ¨­ ç¥ ¢á¥ ¡ã¤¥â ¯¥à¥§ ¯¨á ­® ¢­®¢ì ᪠砭­ë¬¨ ä ©« ¬¨!!!
echo --------------------------------------------------------
echo „«ï ¯à¥ªà é¥­¨ï à ¡®âë ¯à®áâ® § ªà®©â¥ íâ® ®ª­® ­ ¦ â¨¥¬ ­  "ªà¥á⨪"!
echo ========================================================================================================
pause
echo ‘ª ç¨¢ ¥¬ git...
echo ========================================================================================================
curl --ssl-no-revoke -L -o git.zip https://github.com/Nestorchik/git/releases/download/git_portable/git.zip
echo ƒ®â®¢®
echo ========================================================================================================
echo  § à娢¨â㥬 git...
Call :UnZipFile "%curDir%git" "%curDir%git.zip"
if exist "%curDir%git.zip" del /f /q "%curDir%git.zip"
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘ª ç¨¢ ¥¬ python...
echo ========================================================================================================
curl --ssl-no-revoke -L -o python310.pak https://github.com/Nestorchik/python/releases/download/all/python310.pak
echo ƒ®â®¢®
echo ========================================================================================================
echo  § à娢¨à㥬 python
expand python310.pak .\ -F:*
if exist "python310.pak" del /f /q "python310.pak"
echo ƒ®â®¢®
set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts
echo ========================================================================================================
echo ‘ª ç¨¢ ¥¬ "ComfyUI"...
echo ========================================================================================================
%curDir%git\bin\git clone https://github.com/comfyanonymous/ComfyUI.git
echo ========================================================================================================
echo ƒ®â®¢®
echo ‘ª ç¨¢ ¥¬ "ComfyUI-Manager"...
echo ========================================================================================================
cd %curDir%ComfyUI\custom_nodes
%curDir%git\bin\git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd %curDir%
echo ƒ®â®¢®
echo ========================================================================================================
echo Ž¡­®¢«ï¥¬ ¬¥­¥¤¦¥à ¯ ª¥â®¢ "PIP":
%curDir%python\python -m pip install --upgrade pip
echo ƒ®â®¢®
echo ========================================================================================================
echo ˆ­áâ ««¨à㥬 ¯ ª¥âë ¯¨â®­  ¤«ï ª àâ NVIDIA:
echo ... torch torchvision torchaudio
echo ========================================================================================================
%curDir%python\python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
echo ========================================================================================================
echo ƒ®â®¢®
echo ˆ­áâ ««¨à㥬 ¯ ª¥âë ComfyUI...
echo ========================================================================================================
%curDir%python\python -m pip install -r %curDir%ComfyUI\requirements.txt
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘âந¬ ¨ § ¯¨á뢠¥¬ bat-ä ©«...
echo @echo off>run.bat
echo setlocal>>run.bat
echo cd /d %~dp0 >>run.bat
echo set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts >> run.bat
echo set GIT_EXEC_PATH=%curDir%git\bin;%curDir%git\libexec;%curDir%git\libexec\git-core >> run.bat
echo %curDir%python\python -s %curDir%ComfyUI\main.py --windows-standalone-build >> run.bat
echo ========================================================================================================
echo ‡ ¯ã᪠¥¬ ComfyUI...
echo ========================================================================================================
%curDir%python\python -s %curDir%ComfyUI\main.py --windows-standalone-build
echo ========================================================================================================
exit /b
:UnZipFile <ExtractTo> <newzipfile>
set vbs="%temp%\_.vbs"
if exist %vbs% del /f /q %vbs%
>%vbs% echo Set fso = CreateObject("Scripting.FileSystemObject")
>>%vbs% echo If NOT fso.FolderExists(%1) Then
>>%vbs% echo fso.CreateFolder(%1)
>>%vbs% echo End If
>>%vbs% echo set objShell = CreateObject("Shell.Application")
>>%vbs% echo set FilesInZip=objShell.NameSpace(%2).items
>>%vbs% echo objShell.NameSpace(%1).CopyHere(FilesInZip)
>>%vbs% echo Set fso = Nothing
>>%vbs% echo Set objShell = Nothing
cscript //nologo %vbs%
if exist %vbs% del /f /q %vbs%
90 changes: 90 additions & 0 deletions install_ComfyUI_portable_python311_torch_cuda124_RUS.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@echo off
setlocal
cd /d %~dp0
set curDir=%~dp0
echo ========================================================================================================
echo â®â áªà¨¯â ᪠砥⠨ ãáâ ­®¢¨â ¢ ⥪ãéãî ¯ ¯ªã ¯®àâ ¡¥«ì­ãî ¢¥àá¨î ComfyUI
echo á ¯®àâ ¡¥«ì­ë¬ ¯¨â®­®¬ ¨ GIT, ãáâ ­®¢¨â ¢á¥ ¯ ª¥âë ¯¨â®­  ¤«ï ª àâ NVIDIA
echo ¨ ᣥ­¥à¨àã¥â ä ©« § ¯ã᪠ ¨­â¥àä¥©á  ComfyUI
echo ---------------------------------------------
echo “¡¥¤¨áì, çâ® ¢ í⮩ ¯ ¯ª¥ ­¨ç¥£® ­ã¦­®£® ­¥â,
echo ¨­ ç¥ ¢á¥ ¡ã¤¥â ¯¥à¥§ ¯¨á ­® ¢­®¢ì ᪠砭­ë¬¨ ä ©« ¬¨!!!
echo --------------------------------------------------------
echo „«ï ¯à¥ªà é¥­¨ï à ¡®âë ¯à®áâ® § ªà®©â¥ íâ® ®ª­® ­ ¦ â¨¥¬ ­  "ªà¥á⨪"!
echo ========================================================================================================
pause
echo ‘ª ç¨¢ ¥¬ git...
echo ========================================================================================================
curl --ssl-no-revoke -L -o git.zip https://github.com/Nestorchik/git/releases/download/git_portable/git.zip
echo ƒ®â®¢®
echo ========================================================================================================
echo  § à娢¨â㥬 git...
Call :UnZipFile "%curDir%git" "%curDir%git.zip"
if exist "%curDir%git.zip" del /f /q "%curDir%git.zip"
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘ª ç¨¢ ¥¬ python...
echo ========================================================================================================
curl --ssl-no-revoke -L -o python311.pak https://github.com/Nestorchik/python/releases/download/all/python311.pak
echo ƒ®â®¢®
echo ========================================================================================================
echo  § à娢¨à㥬 python
expand python311.pak .\ -F:*
if exist "python311.pak" del /f /q "python311.pak"
echo ƒ®â®¢®
set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts
echo ========================================================================================================
echo ‘ª ç¨¢ ¥¬ "ComfyUI"...
echo ========================================================================================================
%curDir%git\bin\git clone https://github.com/comfyanonymous/ComfyUI.git
echo ========================================================================================================
echo ƒ®â®¢®
echo ‘ª ç¨¢ ¥¬ "ComfyUI-Manager"...
echo ========================================================================================================
cd %curDir%ComfyUI\custom_nodes
%curDir%git\bin\git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd %curDir%
echo ƒ®â®¢®
echo ========================================================================================================
echo Ž¡­®¢«ï¥¬ ¬¥­¥¤¦¥à ¯ ª¥â®¢ "PIP":
%curDir%python\python -m pip install --upgrade pip
echo ƒ®â®¢®
echo ========================================================================================================
echo ˆ­áâ ««¨à㥬 ¯ ª¥âë ¯¨â®­  ¤«ï ª àâ NVIDIA:
echo ... torch torchvision torchaudio
echo ========================================================================================================
%curDir%python\python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
echo ========================================================================================================
echo ƒ®â®¢®
echo ˆ­áâ ««¨à㥬 ¯ ª¥âë ComfyUI...
echo ========================================================================================================
%curDir%python\python -m pip install -r %curDir%ComfyUI\requirements.txt
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘âந¬ ¨ § ¯¨á뢠¥¬ bat-ä ©«...
echo @echo off>run.bat
echo setlocal>>run.bat
echo cd /d %~dp0 >>run.bat
echo set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts >> run.bat
echo set GIT_EXEC_PATH=%curDir%git\bin;%curDir%git\libexec;%curDir%git\libexec\git-core >> run.bat
echo %curDir%python\python -s %curDir%ComfyUI\main.py --windows-standalone-build >> run.bat
echo ========================================================================================================
echo ‡ ¯ã᪠¥¬ ComfyUI...
echo ========================================================================================================
%curDir%python\python -s %curDir%ComfyUI\main.py --windows-standalone-build
echo ========================================================================================================
exit /b
:UnZipFile <ExtractTo> <newzipfile>
set vbs="%temp%\_.vbs"
if exist %vbs% del /f /q %vbs%
>%vbs% echo Set fso = CreateObject("Scripting.FileSystemObject")
>>%vbs% echo If NOT fso.FolderExists(%1) Then
>>%vbs% echo fso.CreateFolder(%1)
>>%vbs% echo End If
>>%vbs% echo set objShell = CreateObject("Shell.Application")
>>%vbs% echo set FilesInZip=objShell.NameSpace(%2).items
>>%vbs% echo objShell.NameSpace(%1).CopyHere(FilesInZip)
>>%vbs% echo Set fso = Nothing
>>%vbs% echo Set objShell = Nothing
cscript //nologo %vbs%
if exist %vbs% del /f /q %vbs%
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ echo ===========================================================================
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘âந¬ ¨ § ¯¨á뢠¥¬ bat-ä ©«...
echo setlocal>run.bat
echo @echo off>run.bat
echo setlocal>>run.bat
echo cd /d %~dp0 >>run.bat
echo set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts >> run.bat
echo set GIT_EXEC_PATH=%curDir%git\bin;%curDir%git\libexec;%curDir%git\libexec\git-core >> run.bat
echo %curDir%python\python %curDir%ComfyUI\main.py --auto-launch >> run.bat
echo %curDir%python\python -s %curDir%ComfyUI\main.py --auto-launch >> run.bat
echo ========================================================================================================
echo ‡ ¯ã᪠¥¬ ComfyUI...
echo ========================================================================================================
%curDir%python\python %curDir%ComfyUI\main.py --auto-launch
%curDir%python\python %curDir%ComfyUI\main.py --windows-standalone-build
echo ========================================================================================================
exit /b
:UnZipFile <ExtractTo> <newzipfile>
Expand Down
90 changes: 90 additions & 0 deletions install_ComfyUI_portable_python312_torch_cuda124_RUS.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@echo off
setlocal
cd /d %~dp0
set curDir=%~dp0
echo ========================================================================================================
echo â®â áªà¨¯â ᪠砥⠨ ãáâ ­®¢¨â ¢ ⥪ãéãî ¯ ¯ªã ¯®àâ ¡¥«ì­ãî ¢¥àá¨î ComfyUI
echo á ¯®àâ ¡¥«ì­ë¬ ¯¨â®­®¬ ¨ GIT, ãáâ ­®¢¨â ¢á¥ ¯ ª¥âë ¯¨â®­  ¤«ï ª àâ NVIDIA
echo ¨ ᣥ­¥à¨àã¥â ä ©« § ¯ã᪠ ¨­â¥àä¥©á  ComfyUI
echo ---------------------------------------------
echo “¡¥¤¨áì, çâ® ¢ í⮩ ¯ ¯ª¥ ­¨ç¥£® ­ã¦­®£® ­¥â,
echo ¨­ ç¥ ¢á¥ ¡ã¤¥â ¯¥à¥§ ¯¨á ­® ¢­®¢ì ᪠砭­ë¬¨ ä ©« ¬¨!!!
echo --------------------------------------------------------
echo „«ï ¯à¥ªà é¥­¨ï à ¡®âë ¯à®áâ® § ªà®©â¥ íâ® ®ª­® ­ ¦ â¨¥¬ ­  "ªà¥á⨪"!
echo ========================================================================================================
pause
echo ‘ª ç¨¢ ¥¬ git...
echo ========================================================================================================
curl --ssl-no-revoke -L -o git.zip https://github.com/Nestorchik/git/releases/download/git_portable/git.zip
echo ƒ®â®¢®
echo ========================================================================================================
echo  § à娢¨â㥬 git...
Call :UnZipFile "%curDir%git" "%curDir%git.zip"
if exist "%curDir%git.zip" del /f /q "%curDir%git.zip"
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘ª ç¨¢ ¥¬ python...
echo ========================================================================================================
curl --ssl-no-revoke -L -o python312.pak https://github.com/Nestorchik/python/releases/download/all/python312.pak
echo ƒ®â®¢®
echo ========================================================================================================
echo  § à娢¨à㥬 python
expand python312.pak .\ -F:*
if exist "python312.pak" del /f /q "python312.pak"
echo ƒ®â®¢®
set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts
echo ========================================================================================================
echo ‘ª ç¨¢ ¥¬ "ComfyUI"...
echo ========================================================================================================
%curDir%git\bin\git clone https://github.com/comfyanonymous/ComfyUI.git
echo ========================================================================================================
echo ƒ®â®¢®
echo ‘ª ç¨¢ ¥¬ "ComfyUI-Manager"...
echo ========================================================================================================
cd %curDir%ComfyUI\custom_nodes
%curDir%git\bin\git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd %curDir%
echo ƒ®â®¢®
echo ========================================================================================================
echo Ž¡­®¢«ï¥¬ ¬¥­¥¤¦¥à ¯ ª¥â®¢ "PIP":
%curDir%python\python -m pip install --upgrade pip
echo ƒ®â®¢®
echo ========================================================================================================
echo ˆ­áâ ««¨à㥬 ¯ ª¥âë ¯¨â®­  ¤«ï ª àâ NVIDIA:
echo ... torch torchvision torchaudio
echo ========================================================================================================
%curDir%python\python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
echo ========================================================================================================
echo ƒ®â®¢®
echo ˆ­áâ ««¨à㥬 ¯ ª¥âë ComfyUI...
echo ========================================================================================================
%curDir%python\python -m pip install -r %curDir%ComfyUI\requirements.txt
echo ƒ®â®¢®
echo ========================================================================================================
echo ‘âந¬ ¨ § ¯¨á뢠¥¬ bat-ä ©«...
echo @echo off>run.bat
echo setlocal>>run.bat
echo cd /d %~dp0 >>run.bat
echo set PATH=%curDir%git\bin;%curDir%git\libexec\;%curDir%python;%curDir%\python\Library\bin;%curDir%python\Scripts >> run.bat
echo set GIT_EXEC_PATH=%curDir%git\bin;%curDir%git\libexec;%curDir%git\libexec\git-core >> run.bat
echo %curDir%python\python -s %curDir%ComfyUI\main.py --windows-standalone-build >> run.bat
echo ========================================================================================================
echo ‡ ¯ã᪠¥¬ ComfyUI...
echo ========================================================================================================
%curDir%python\python -s %curDir%ComfyUI\main.py --windows-standalone-build
echo ========================================================================================================
exit /b
:UnZipFile <ExtractTo> <newzipfile>
set vbs="%temp%\_.vbs"
if exist %vbs% del /f /q %vbs%
>%vbs% echo Set fso = CreateObject("Scripting.FileSystemObject")
>>%vbs% echo If NOT fso.FolderExists(%1) Then
>>%vbs% echo fso.CreateFolder(%1)
>>%vbs% echo End If
>>%vbs% echo set objShell = CreateObject("Shell.Application")
>>%vbs% echo set FilesInZip=objShell.NameSpace(%2).items
>>%vbs% echo objShell.NameSpace(%1).CopyHere(FilesInZip)
>>%vbs% echo Set fso = Nothing
>>%vbs% echo Set objShell = Nothing
cscript //nologo %vbs%
if exist %vbs% del /f /q %vbs%

0 comments on commit 8d4c0f4

Please sign in to comment.