-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
661b6a1
commit 8d4c0f4
Showing
5 changed files
with
274 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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% |