diff --git a/glob/manager_core.py b/glob/manager_core.py index 57000c14..2a378fac 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -42,7 +42,7 @@ import manager_downloader from node_package import InstalledNodePackage -version_code = [3, 24] +version_code = [3, 24, 1] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') @@ -1729,7 +1729,7 @@ def try_install_script(url, repo_path, install_cmd, instant_execution=False): if platform.system() != "Windows": try: - if comfy_ui_commit_datetime.date() < comfy_ui_required_commit_datetime.date(): + if not os.environ.get('__COMFYUI_DESKTOP_VERSION__') and comfy_ui_commit_datetime.date() < comfy_ui_required_commit_datetime.date(): print("\n\n###################################################################") print(f"[WARN] ComfyUI-Manager: Your ComfyUI version ({comfy_ui_revision})[{comfy_ui_commit_datetime.date()}] is too old. Please update to the latest version.") print("[WARN] The extension installation feature may not work properly in the current installed ComfyUI version on Windows environment.") diff --git a/glob/manager_server.py b/glob/manager_server.py index 85c224f8..6aa0c49d 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -209,7 +209,7 @@ def print_comfyui_version(): comfyui_tag = core.get_comfyui_tag() try: - if core.comfy_ui_commit_datetime.date() < core.comfy_ui_required_commit_datetime.date(): + if not os.environ.get('__COMFYUI_DESKTOP_VERSION__') and core.comfy_ui_commit_datetime.date() < core.comfy_ui_required_commit_datetime.date(): logging.warning(f"\n\n## [WARN] ComfyUI-Manager: Your ComfyUI version ({core.comfy_ui_revision})[{core.comfy_ui_commit_datetime.date()}] is too old. Please update to the latest version. ##\n\n") except: pass @@ -1501,7 +1501,11 @@ async def get_notice(request): markdown_content = match.group(1) version_tag = core.get_comfyui_tag() if version_tag is None: - markdown_content += f"
ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})" + version_tag = os.environ.get('__COMFYUI_DESKTOP_VERSION__') + if version_tag is not None: + markdown_content += f"
ComfyUI: {version_tag} [Desktop]" + else: + markdown_content += f"
ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})" else: markdown_content += (f"
ComfyUI: {version_tag}
" f"         ({core.comfy_ui_commit_datetime.date()})") diff --git a/pyproject.toml b/pyproject.toml index e2ef4b8b..6f1e848f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "3.24" +version = "3.24.1" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]