mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 22:24:23 +08:00
modified: Change the default from CNR to nightly
fixed: broken CNR installation
This commit is contained in:
parent
46a6afcc19
commit
e2e1e23ab5
@ -1141,7 +1141,7 @@ class UnifiedManager:
|
|||||||
|
|
||||||
manager_util.download_url(node_info.download_url, custom_nodes_path, archive_name)
|
manager_util.download_url(node_info.download_url, custom_nodes_path, archive_name)
|
||||||
os.makedirs(install_path, exist_ok=True)
|
os.makedirs(install_path, exist_ok=True)
|
||||||
extracted = cnr_utils.extract_package_as_zip(download_path, install_path)
|
extracted = manager_util.extract_package_as_zip(download_path, install_path)
|
||||||
os.remove(download_path)
|
os.remove(download_path)
|
||||||
result.to_path = install_path
|
result.to_path = install_path
|
||||||
|
|
||||||
@ -1694,6 +1694,7 @@ def git_repo_update_check_with(path, do_fetch=False, do_update=False, no_deps=Fa
|
|||||||
:param path: path to git custom node
|
:param path: path to git custom node
|
||||||
:param do_fetch: do fetch during check
|
:param do_fetch: do fetch during check
|
||||||
:param do_update: do update during check
|
:param do_update: do update during check
|
||||||
|
:param no_deps: don't install dependencies
|
||||||
:return: update state * success
|
:return: update state * success
|
||||||
"""
|
"""
|
||||||
if do_fetch:
|
if do_fetch:
|
||||||
@ -1816,7 +1817,7 @@ def is_valid_url(url):
|
|||||||
return True
|
return True
|
||||||
finally:
|
finally:
|
||||||
# Check for SSH git URL format
|
# Check for SSH git URL format
|
||||||
pattern = re.compile(r"^(.+@|ssh:\/\/).+:.+$")
|
pattern = re.compile(r"^(.+@|ssh://).+:.+$")
|
||||||
if pattern.match(url):
|
if pattern.match(url):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
@ -1167,15 +1167,15 @@ export class CustomNodesManager {
|
|||||||
let version_cnt = 0;
|
let version_cnt = 0;
|
||||||
|
|
||||||
if(!is_enable) {
|
if(!is_enable) {
|
||||||
if(rowItem.cnr_latest != rowItem.originalData.active_version) {
|
|
||||||
versions.push('latest');
|
|
||||||
}
|
|
||||||
|
|
||||||
if(rowItem.originalData.active_version != 'nightly') {
|
if(rowItem.originalData.active_version != 'nightly') {
|
||||||
versions.push('nightly');
|
versions.push('nightly');
|
||||||
default_version = 'nightly';
|
default_version = 'nightly';
|
||||||
version_cnt++;
|
version_cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(rowItem.cnr_latest != rowItem.originalData.active_version) {
|
||||||
|
versions.push('latest');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let v of obj) {
|
for(let v of obj) {
|
||||||
@ -1186,15 +1186,9 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(version_cnt == 1) {
|
this.showVersionSelectorDialog(versions, (selected_version) => {
|
||||||
// if only one version is available
|
this.installNodes([hash], btn, title, selected_version);
|
||||||
this.installNodes([hash], btn, title, default_version);
|
});
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.showVersionSelectorDialog(versions, (selected_version) => {
|
|
||||||
this.installNodes([hash], btn, title, selected_version);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
show_message('Failed to fetch versions from ComfyRegistry.');
|
show_message('Failed to fetch versions from ComfyRegistry.');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user