Finalize¶
finalize
¶
Installation finalization — Steps 11-12.
Post-install tasks that wrap up the installation:
- CLI (Step 11): installs
comfyui-installerinto the venv so generated tool scripts (Update, Download-Models) work. - Settings (Step 11): copies custom ComfyUI UI settings from
the local
scripts/comfy.settings.json. - Launchers (Step 11): generates
.bat/.shlauncher and tool scripts. - Models (Step 12): offers interactive model pack downloads
from
model_manifest.json.
install_cli_in_environment(python_exe, log)
¶
Install the comfyui-installer CLI into the venv.
Uses pip install -e so the CLI stays in sync with the
installer source. Required for generated tool scripts
(UmeAiRT-Update.bat, UmeAiRT-Download-Models.bat).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
Source code in src/installer/finalize.py
install_comfy_settings(install_path, log, *, source_dir=None)
¶
Copy custom ComfyUI UI settings from the local source.
Searches for comfy.settings.json in the source scripts/
directory and copies it to install_path/user/default/.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
install_path
|
Path
|
Root installation directory. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
source_dir
|
Path | None
|
Pre-resolved source scripts directory. |
None
|
Source code in src/installer/finalize.py
create_launchers(install_path, log, *, cuda_tag=None)
¶
Generate cross-platform launcher and tool scripts.
Creates:
- Performance launcher:
--use-sage-attention --auto-launch - interactive network mode prompt (local/open).
- LowVRAM launcher: same +
--lowvram --disable-smart-memory --fp8. - Tool scripts: Model Downloader and Updater wrappers.
The --listen address is chosen by the user at launch time
via the prompt embedded in each launcher script (default: local
127.0.0.1, option 0.0.0.0 for RunPod/cloud).
On Windows, creates .bat files; on Linux/macOS .sh files
with the executable bit set.
Appends --directml to ComfyUI launch arguments if running on Windows AMD.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
install_path
|
Path
|
Root installation directory. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
The active GPU tag (used to detect 'directml'). |
None
|
Source code in src/installer/finalize.py
offer_model_downloads(install_path, log, *, source_dir=None)
¶
Offer interactive model pack downloads via the unified catalog.
Searches for model_manifest.json in multiple locations:
install_path/scripts/- Source
scripts/directory (development checkout). - Parent of source
scripts/directory.
If found, prompts the user and delegates to
:func:src.downloader.engine.interactive_download.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
install_path
|
Path
|
Root installation directory. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
source_dir
|
Path | None
|
Pre-resolved source scripts directory. |
None
|