-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Yarn Dev/Make Fixes, Local ComfyCLI Fix (#139)
- Loading branch information
Showing
15 changed files
with
53 additions
and
43 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-32.7 KB
assets/output/lib/python3.12/lib-dynload/_crypt.cpython-312-darwin.so
Binary file not shown.
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const { exec, execSync, spawnSync, spawn } = require("child_process"); | ||
const path = require("path"); | ||
const os = require('os'); | ||
const process = require("process"); | ||
const fs = require('fs-extra'); | ||
|
||
module.exports = async ({ appOutDir, packager, outDir }) => { | ||
|
||
const firstInstallOnToDesktopServers = | ||
process.env.TODESKTOP_CI && process.env.TODESKTOP_INITIAL_INSTALL_PHASE; | ||
// Do NOT run on CI | ||
if (process.env.CI || firstInstallOnToDesktopServers) return; | ||
|
||
const isNvidia = process.argv[process.argv.length-1] === '--nvidia'; | ||
|
||
console.log(`<BUILDING COMFYCLI ON ${os.platform()} ${isNvidia && "Nvidia Ver"}>`) | ||
|
||
// If this folder is here assume comfy has already been installed | ||
if (fs.existsSync('./assets/ComfyUI')) | ||
{ | ||
console.log(">COMFYUI ALREADY BUILT<"); | ||
return | ||
} | ||
|
||
if (os.platform() === 'darwin') { | ||
spawnSync('py -m pip install comfy-cli', [''], { shell: true, stdio:['ignore','ignore','inherit'] }); | ||
spawnSync('yarn run make:assets:macos', [''], { shell: true, stdio: "inherit" }); | ||
} | ||
|
||
if (os.platform() === 'win32') | ||
{ | ||
spawnSync('py -m pip install comfy-cli', [''], { shell: true, stdio:['ignore','ignore','inherit'] }); | ||
const result = spawnSync(`python -c "import os,sysconfig;print(sysconfig.get_path(""scripts"",f""{os.name}_user""))"`, [''], { shell: true, stdio: "pipe" }).stdout.toString(); | ||
const localPythonModulePath = `PATH=${result.replaceAll('\\','\\\\').trim()};%PATH%`; | ||
spawnSync(`set ${localPythonModulePath} && yarn run make:assets:${isNvidia ? 'nvidia' : 'cpu'}`, [''], { shell: true, stdio: "inherit" }); | ||
|
||
} | ||
console.log(">PREMAKE FINISH<"); | ||
} |
This file was deleted.
Oops, something went wrong.
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