Skip to content

Commit

Permalink
Remove 'update' folder from ComfyUI
Browse files Browse the repository at this point in the history
follow-up of changing to Python Standalone
  • Loading branch information
YanWenKun committed Jan 17, 2025
1 parent 9cde67f commit faf7e13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 2 additions & 0 deletions builder/attachments/run_cpu.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.\python_standalone\python.exe -s ComfyUI\main.py --cpu --windows-standalone-build
pause
17 changes: 2 additions & 15 deletions builder/stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ export PATH="$PATH:$workdir/ComfyUI_Windows_portable/python_standalone/Scripts"

ls -lahF

# MKDIRs
mkdir -p "$workdir"/ComfyUI_Windows_portable/update
# Redirect HuggingFace-Hub model folder
export HF_HUB_CACHE="$workdir/ComfyUI_Windows_portable/HuggingFaceHub"
mkdir -p "${HF_HUB_CACHE}"
# Redirect Pytorch Hub model folder
export TORCH_HOME="$workdir/ComfyUI_Windows_portable/TorchHome"
mkdir -p "${TORCH_HOME}"

# Relocate python_standalone.
# Relocate python_standalone
# This move is intentional. It will fast-fail if this breaks anything.
mv "$workdir"/python_standalone "$workdir"/ComfyUI_Windows_portable/python_standalone

Expand Down Expand Up @@ -95,18 +93,7 @@ $gcs https://github.com/SLAPaper/ComfyUI-Image-Selector.git
$gcs https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git

################################################################################
# Copy & Replace start script files
# First copy ComfyUI's attachments
cp -r "$workdir"/ComfyUI_Windows_portable/ComfyUI/.ci/update_windows/* \
"$workdir"/ComfyUI_Windows_portable/update/
cp -r "$workdir"/ComfyUI_Windows_portable/ComfyUI/.ci/windows_base_files/* \
"$workdir"/ComfyUI_Windows_portable/

# If ComfyUI has breaking-changes, stop building
if [ ! -f "$workdir"/ComfyUI_Windows_portable/run_nvidia_gpu.bat ] ; then
return 1
fi ;

# Copy attachments files (incl. start scripts)
cp -rf "$workdir"/attachments/* \
"$workdir"/ComfyUI_Windows_portable/

Expand Down

0 comments on commit faf7e13

Please sign in to comment.