20 lines
881 B
JavaScript
20 lines
881 B
JavaScript
module.exports = {
|
|
title: "ComfyUI Model Downloader",
|
|
description: "Identify and download missing models for ComfyUI workflows automatically.",
|
|
icon: "icon.png",
|
|
menu: async (kernel) => {
|
|
let installed = await kernel.exists("target/ComfyUIModelDownloader.jar")
|
|
let results = [
|
|
{ icon: "fa-solid fa-play", text: "Start", href: "start.json" },
|
|
{ icon: "fa-solid fa-rotate", text: "Update", href: "update.json" },
|
|
{ icon: "fa-solid fa-trash-can", text: "Reset", href: "reset.js", confirm: "Are you sure you want to reset the installation? This will delete the local environment and build files." }
|
|
]
|
|
if (installed) {
|
|
results.push({ icon: "fa-solid fa-plug", text: "Reinstall", href: "install.json" })
|
|
} else {
|
|
results.unshift({ icon: "fa-solid fa-plug", text: "Install", href: "install.json" })
|
|
}
|
|
return results
|
|
}
|
|
}
|