Upload Install-ComfyUI.ps1
Browse files
scripts/ComfyUI/Install-ComfyUI.ps1
CHANGED
|
@@ -216,7 +216,7 @@ Invoke-AndLog "$venvPython" "-m pip install -r `"$comfyPath\requirements.txt`""
|
|
| 216 |
|
| 217 |
# --- Étape 5: Installation des Custom Nodes ---
|
| 218 |
Write-Log "`nStep 5: Installing custom nodes..." -Color Yellow
|
| 219 |
-
$customNodesPath = Join-Path $
|
| 220 |
# ... (La liste des noeuds est inchangée)
|
| 221 |
$customNodes = @(
|
| 222 |
@{Name="ComfyUI-Manager"; Repo="https://github.com/ltdrdata/ComfyUI-Manager.git"; HasRequirements=$false},
|
|
@@ -275,20 +275,6 @@ $settingsFilePath = Join-Path $userDefaultPath "comfy.settings.json"
|
|
| 275 |
Download-File -Uri "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json" -OutFile $settingsFilePath
|
| 276 |
if (-not (Test-Path $workflowCloneDest)) { Invoke-AndLog "git" "clone https://github.com/UmeAiRT/ComfyUI-Workflows `"$workflowCloneDest`"" }
|
| 277 |
|
| 278 |
-
# --- Étape 8: Création du lanceur final ---
|
| 279 |
-
Write-Log "`nStep 8: Creating final launcher script..." -Color Yellow
|
| 280 |
-
$launcherContent = @"
|
| 281 |
-
@echo off
|
| 282 |
-
echo Activating ComfyUI virtual environment...
|
| 283 |
-
call `"%~dp0ComfyUI\venv\Scripts\activate.bat`"
|
| 284 |
-
echo Starting ComfyUI...
|
| 285 |
-
cd `"%~dp0ComfyUI`"
|
| 286 |
-
python main.py --windows-standalone-build
|
| 287 |
-
pause
|
| 288 |
-
"@
|
| 289 |
-
$launcherContent | Set-Content -Path (Join-Path $InstallPath "run_ComfyUI.bat")
|
| 290 |
-
Write-Log " - Created run_ComfyUI.bat. Use this file to start the application." -Color Green
|
| 291 |
-
|
| 292 |
# --- Étape 9: Téléchargement optionnel des packs de modèles ---
|
| 293 |
Write-Log "`nStep 9: Optional Model Pack Downloads..." -Color Yellow
|
| 294 |
$modelPacks = @( @{Name="FLUX"; ScriptName="Download-FLUX-Models.ps1"} )
|
|
|
|
| 216 |
|
| 217 |
# --- Étape 5: Installation des Custom Nodes ---
|
| 218 |
Write-Log "`nStep 5: Installing custom nodes..." -Color Yellow
|
| 219 |
+
$customNodesPath = Join-Path $InstallPath "custom_nodes" # Définit le chemin pour les noeuds
|
| 220 |
# ... (La liste des noeuds est inchangée)
|
| 221 |
$customNodes = @(
|
| 222 |
@{Name="ComfyUI-Manager"; Repo="https://github.com/ltdrdata/ComfyUI-Manager.git"; HasRequirements=$false},
|
|
|
|
| 275 |
Download-File -Uri "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json" -OutFile $settingsFilePath
|
| 276 |
if (-not (Test-Path $workflowCloneDest)) { Invoke-AndLog "git" "clone https://github.com/UmeAiRT/ComfyUI-Workflows `"$workflowCloneDest`"" }
|
| 277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
# --- Étape 9: Téléchargement optionnel des packs de modèles ---
|
| 279 |
Write-Log "`nStep 9: Optional Model Pack Downloads..." -Color Yellow
|
| 280 |
$modelPacks = @( @{Name="FLUX"; ScriptName="Download-FLUX-Models.ps1"} )
|