Finalize¶
finalize
¶
Installation finalization — Steps 11-12.
Post-install tasks that wrap up the installation:
- CLI (Step 11): installs
umeairt-comfyui-installerinto the venv so the generatedUmeAiRT-Managerscript can launch the TUI. - 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 umeairt-comfyui-installer CLI into the venv.
Required for generated tool scripts (UmeAiRT-Manager.bat…).
The CLI is installed as a regular (non-editable) package: an editable
install linked the environment to the bootstrap's clone in %TEMP%,
so cleaning the temp folder broke the Manager. From a source checkout
the checkout is built and installed; from an installed wheel (no
pyproject.toml next to the package) the same version is installed
from PyPI. update later upgrades it in place (see self_update).
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 umeairt_installer/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 umeairt_installer/installer/finalize.py
create_launchers(install_path, log, *, cuda_tag=None, torch_profile='classic')
¶
Generate cross-platform launcher and manager scripts.
Creates:
- Performance launcher: attention backend +
--auto-launch --enable-manager(the Manager built into ComfyUI) with listen address read fromscripts/listen_address.- LowVRAM launcher: same +
--lowvram --disable-smart-memory --fp8. - Manager script:
UmeAiRT-Manager— opens the TUI for updates, model downloads, settings, and reinstall.
On Windows, creates .bat files; on Linux/macOS .sh files
with the executable bit set.
Uses --use-ck-attention for the modern profile and
--use-sage-attention for the classic profile (NVIDIA only).
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 NVIDIA for attention flags). |
None
|
torch_profile
|
str
|
|
'classic'
|
Source code in umeairt_installer/installer/finalize.py
write_manager_script(install_path, log)
¶
Write (or rewrite) the UmeAiRT-Manager script that opens the TUI.
Source code in umeairt_installer/installer/finalize.py
add_manager_flag_to_launchers(install_path, log)
¶
Add --enable-manager to existing launchers, in place.
Launchers written before the switch to the Manager built into ComfyUI
start without it, so the legacy custom-node clone keeps running. Only the
main.py command line is touched: anything the user added is kept.
Returns:
| Type | Description |
|---|---|
int
|
The number of launchers updated. |
Source code in umeairt_installer/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:umeairt_installer.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
|