mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 10:02:28 +08:00
feat: cm-cli - post-install
This commit is contained in:
parent
3c14b7314e
commit
012fe6cd7a
11
cm-cli.py
11
cm-cli.py
@ -939,6 +939,17 @@ def restore_dependencies():
|
|||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|
||||||
|
@app.command(
|
||||||
|
"post-install", help="Install dependencies and execute installation script"
|
||||||
|
)
|
||||||
|
def post_install(
|
||||||
|
path: str = typer.Argument(
|
||||||
|
help="path to custom node",
|
||||||
|
)):
|
||||||
|
path = os.path.expanduser(path)
|
||||||
|
cm_ctx.post_install(path)
|
||||||
|
|
||||||
|
|
||||||
@app.command(
|
@app.command(
|
||||||
"install-deps",
|
"install-deps",
|
||||||
help="Install dependencies from dependencies file(.json) or workflow(.png/.json)",
|
help="Install dependencies from dependencies file(.json) or workflow(.png/.json)",
|
||||||
|
|||||||
@ -23,7 +23,7 @@ sys.path.append(glob_path)
|
|||||||
import cm_global
|
import cm_global
|
||||||
from manager_util import *
|
from manager_util import *
|
||||||
|
|
||||||
version = [2, 34, 1]
|
version = [2, 35]
|
||||||
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||||
|
|
||||||
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-manager"
|
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."
|
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
|
||||||
version = "2.34.1"
|
version = "2.35"
|
||||||
license = "LICENSE"
|
license = "LICENSE"
|
||||||
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user