Skip to content

Commit

Permalink
Rename ComfyUI-Manager to manager-core. (#227)
Browse files Browse the repository at this point in the history
* Rename ComfyUI-Manager to manager-core.

* Checkout specific manager core commit.
  • Loading branch information
robinjhuang authored Nov 12, 2024
1 parent b6ded99 commit 112361b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"packageManager": "[email protected]",
"config": {
"frontendVersion": "1.3.33",
"comfyVersion": "0.2.7"
"comfyVersion": "0.2.7",
"managerCommit": "cfdb687db3a7d2554f4f0e1f982ad9fffb3c4f2e"
},
"scripts": {
"clean": "rimraf .vite dist out",
Expand Down
16 changes: 12 additions & 4 deletions scripts/makeComfy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { execSync } = require('child_process');
const pkg = require('../package.json');
const fs = require('fs');

function makeAssets(gpuFlag) {
const baseCommand = [
Expand All @@ -8,18 +9,25 @@ function makeAssets(gpuFlag) {
`comfy-cli --skip-prompt --here install --version ${pkg.config.comfyVersion} --fast-deps`,
gpuFlag,
'--manager-url https://github.com/Comfy-Org/manager-core',
'--manager-commit',
pkg.config.managerCommit,
'&&',
'comfy-cli --here standalone',
'&&',
'yarn run make:frontend'
].join(' ');

// Special case for macOS which needs additional checks
if (gpuFlag === '--m-series') {
return execSync(`${baseCommand} && ../scripts/checkAssetsMacos.sh python`, { stdio: 'inherit' });
execSync(`${baseCommand} && ../scripts/checkAssetsMacos.sh python`, { stdio: 'inherit' });
} else {
execSync(baseCommand, { stdio: 'inherit' });
}

execSync(baseCommand, { stdio: 'inherit' });

// Rename custom_nodes/ComfyUI-Manager to manager-core
if (!fs.existsSync('assets/ComfyUI/custom_nodes/ComfyUI-Manager')) {
throw new Error('ComfyUI-Manager not found');
}
fs.renameSync('./assets/ComfyUI/custom_nodes/ComfyUI-Manager', './assets/ComfyUI/custom_nodes/manager-core');
}

// Get GPU flag from command line argument
Expand Down

0 comments on commit 112361b

Please sign in to comment.