-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install latest stable version of ComfyUI. (#24)
* Install latest stable version of ComfyUI. * Try. * Fix. * Add version install.
- Loading branch information
1 parent
6813791
commit e80a96f
Showing
5 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
"main": ".vite/build/main.js", | ||
"packageManager": "[email protected]", | ||
"config": { | ||
"frontendVersion": "1.3.33" | ||
"frontendVersion": "1.3.33", | ||
"comfyVersion": "0.2.7" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf .vite dist out", | ||
|
@@ -25,10 +26,10 @@ | |
"lint": "eslint --ext .ts,.tsx .", | ||
"lint:fix": "eslint --fix --ext .ts,.tsx .", | ||
"make": "yarn run vite:compile && electron-builder build --config=builder-debug.config.ts", | ||
"make:assets:amd": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --amd --manager-url https://github.com/Comfy-Org/manager-core && comfy-cli --here standalone && yarn run make:frontend", | ||
"make:assets:cpu": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --cpu --manager-url https://github.com/Comfy-Org/manager-core && comfy-cli --here standalone && node ../scripts/env.mjs && yarn run make:frontend", | ||
"make:assets:macos": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --m-series --manager-url https://github.com/Comfy-Org/manager-core && comfy-cli --here standalone && yarn run make:frontend && ../scripts/checkAssetsMacos.sh python", | ||
"make:assets:nvidia": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --nvidia --manager-url https://github.com/Comfy-Org/manager-core && comfy-cli --here standalone && yarn run make:frontend", | ||
"make:assets:amd": "node scripts/makeComfy.js amd", | ||
"make:assets:cpu": "node scripts/makeComfy.js cpu", | ||
"make:assets:macos": "node scripts/makeComfy.js macos", | ||
"make:assets:nvidia": "node scripts/makeComfy.js nvidia", | ||
"make:nvidia": "yarn run make -- --nvidia", | ||
"notarize": "node debug/notarize.js", | ||
"package": "yarn run vite:compile && todesktop build --code-sign=false --async", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const { execSync } = require('child_process'); | ||
const pkg = require('../package.json'); | ||
|
||
function makeAssets(gpuFlag) { | ||
const baseCommand = [ | ||
'cd assets', | ||
'&&', | ||
`comfy-cli --skip-prompt --here install --version ${pkg.config.comfyVersion} --fast-deps`, | ||
gpuFlag, | ||
'--manager-url https://github.com/Comfy-Org/manager-core', | ||
'&&', | ||
'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, { stdio: 'inherit' }); | ||
} | ||
|
||
// Get GPU flag from command line argument | ||
const arg = process.argv[2]; | ||
const gpuFlags = { | ||
nvidia: '--nvidia', | ||
amd: '--amd', | ||
cpu: '--cpu', | ||
macos: '--m-series' | ||
}; | ||
|
||
if (!arg || !gpuFlags[arg]) { | ||
console.error('Please specify a valid GPU type: nvidia, amd, cpu, or macos'); | ||
process.exit(1); | ||
} | ||
|
||
makeAssets(gpuFlags[arg]); |