Update MeitabuPackreatorComfyUi3.sh
Browse files- MeitabuPackreatorComfyUi3.sh +14 -2
MeitabuPackreatorComfyUi3.sh
CHANGED
|
@@ -290,21 +290,32 @@ install_story_diffusion_node() {
|
|
| 290 |
local custom_nodes_dir="${COMFY_INSTALL_DIR}/custom_nodes"
|
| 291 |
local target_dir="${custom_nodes_dir}/${node_name}"
|
| 292 |
local requirements_file="${target_dir}/requirements.txt"
|
|
|
|
| 293 |
|
| 294 |
# Garante que o diret贸rio de n贸s customizados exista
|
| 295 |
mkdir -p "$custom_nodes_dir"
|
| 296 |
|
| 297 |
if [ -d "$target_dir" ]; then
|
| 298 |
-
log_info "StoryDiffusion node already exists.
|
|
|
|
|
|
|
|
|
|
| 299 |
else
|
| 300 |
log_info "Cloning StoryDiffusion repository into $target_dir"
|
| 301 |
if ! git clone "$node_repo" "$target_dir"; then
|
| 302 |
log_error "Failed to clone StoryDiffusion repository."
|
| 303 |
-
# Continuar mesmo com falha, apenas avisar
|
| 304 |
return 1
|
| 305 |
fi
|
| 306 |
fi
|
| 307 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
if [ -f "$requirements_file" ]; then
|
| 309 |
log_info "Installing StoryDiffusion dependencies from $requirements_file..."
|
| 310 |
if ! python3 -m pip install -r "$requirements_file"; then
|
|
@@ -317,6 +328,7 @@ install_story_diffusion_node() {
|
|
| 317 |
fi
|
| 318 |
}
|
| 319 |
|
|
|
|
| 320 |
# ============================================================================
|
| 321 |
# ### NOVO ### SPECIAL NODE: NUDENET
|
| 322 |
# ============================================================================
|
|
|
|
| 290 |
local custom_nodes_dir="${COMFY_INSTALL_DIR}/custom_nodes"
|
| 291 |
local target_dir="${custom_nodes_dir}/${node_name}"
|
| 292 |
local requirements_file="${target_dir}/requirements.txt"
|
| 293 |
+
local commit_hash="e06e6d3f6543f6a849252b81e84d4fd636f09798"
|
| 294 |
|
| 295 |
# Garante que o diret贸rio de n贸s customizados exista
|
| 296 |
mkdir -p "$custom_nodes_dir"
|
| 297 |
|
| 298 |
if [ -d "$target_dir" ]; then
|
| 299 |
+
log_info "StoryDiffusion node already exists. Pulling latest changes..."
|
| 300 |
+
if ! git -C "$target_dir" fetch --all; then
|
| 301 |
+
log_warning "Failed to fetch updates for StoryDiffusion. Continuing..."
|
| 302 |
+
fi
|
| 303 |
else
|
| 304 |
log_info "Cloning StoryDiffusion repository into $target_dir"
|
| 305 |
if ! git clone "$node_repo" "$target_dir"; then
|
| 306 |
log_error "Failed to clone StoryDiffusion repository."
|
|
|
|
| 307 |
return 1
|
| 308 |
fi
|
| 309 |
fi
|
| 310 |
|
| 311 |
+
# Checkout no commit espec铆fico
|
| 312 |
+
log_info "Checking out commit $commit_hash..."
|
| 313 |
+
if ! git -C "$target_dir" checkout "$commit_hash"; then
|
| 314 |
+
log_error "Failed to checkout commit $commit_hash for StoryDiffusion."
|
| 315 |
+
return 1
|
| 316 |
+
fi
|
| 317 |
+
|
| 318 |
+
# Instala as depend锚ncias se houver
|
| 319 |
if [ -f "$requirements_file" ]; then
|
| 320 |
log_info "Installing StoryDiffusion dependencies from $requirements_file..."
|
| 321 |
if ! python3 -m pip install -r "$requirements_file"; then
|
|
|
|
| 328 |
fi
|
| 329 |
}
|
| 330 |
|
| 331 |
+
|
| 332 |
# ============================================================================
|
| 333 |
# ### NOVO ### SPECIAL NODE: NUDENET
|
| 334 |
# ============================================================================
|