From fb5c22292e6302678f140f67e25f05d83dc33902 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 8 Sep 2024 19:35:02 +0100 Subject: [PATCH] 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. --- install-portable.bat | 16 ++++++++++++++++ setup-onediff.bat | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 install-portable.bat create mode 100644 setup-onediff.bat diff --git a/install-portable.bat b/install-portable.bat new file mode 100644 index 0000000..d2b877d --- /dev/null +++ b/install-portable.bat @@ -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 \ No newline at end of file diff --git a/setup-onediff.bat b/setup-onediff.bat new file mode 100644 index 0000000..3cdd9a4 --- /dev/null +++ b/setup-onediff.bat @@ -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 \ No newline at end of file