Skip to content

Commit

Permalink
Rename ComfyUI-Manager to manager-core.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Nov 12, 2024
1 parent b65ea08 commit 1451636
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 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 @@ -14,12 +15,17 @@ function makeAssets(gpuFlag) {
'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 1451636

Please sign in to comment.