added batch files for comfyUI portable users

install-portable.bat - installs the requirements.txt for ComfyUI portable users (embedded python)

setup-onediff.bat - installs the recommended extras for ComfyUI Portable users (embedded python)

It can be easy to install to system python by accident when running the the Portable version of ComfyUI, so i use these to help make life easier.
This commit is contained in:
Tom 2024-09-08 19:35:02 +01:00 committed by GitHub
parent 05413b6cfe
commit fb5c22292e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 0 deletions

16
install-portable.bat Normal file
View File

@ -0,0 +1,16 @@
@echo off
set "requirements_txt=%~dp0\requirements.txt"
set "python_exec=..\..\..\python_embeded\python.exe"
echo Installing node...
if exist "%python_exec%" (
echo Installing with ComfyUI Portable
"%python_exec%" -s -m pip install -r "%requirements_txt%"
) else (
echo Installing with system Python
pip install -r "%requirements_txt%"
)
pause

15
setup-onediff.bat Normal file
View File

@ -0,0 +1,15 @@
@echo off
set "python_exec=..\..\..\python_embeded\python.exe"
echo Installing node...
if exist "%python_exec%" (
echo Installing with ComfyUI Portable
"%python_exec%" -s -m pip install --pre onediff onediffx && pip install nexfort"
) else (
echo Installing with system Python
pip install --pre onediff onediffx && pip install nexfort"
)
pause