Skip to content

Commit

Permalink
If comfyUI exists then throw error.
Browse files Browse the repository at this point in the history
Changed verbiage
  • Loading branch information
KenCorma committed Nov 23, 2024
1 parent e933a88 commit fcc6851
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/todesktop/postInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ async function postInstall() {
if (!firstInstallOnToDesktopServers) return;

console.log('After Yarn Install ' , os.platform());
if (fs.existsSync(path.join('./assets','ComfyUI')))
{
throw new Error("ComfyUI has already been installed!");
}

if (os.platform() === "win32")
{
Expand Down Expand Up @@ -52,7 +56,7 @@ async function postInstall() {
fs.rmSync(path.join('./assets', tgzFile));
}
});

};

postInstall();

0 comments on commit fcc6851

Please sign in to comment.