Skip to content

Commit

Permalink
add scripts to create and clean assets to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Aug 30, 2024
1 parent 4e9c4d3 commit 0cc0ec9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ comfyui

# built assets
assets/ComfyUI
assets/cpython*.tar.gz
assets/override.txt
assets/python
assets/requirements.*
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
"type": "commonjs",
"scripts": {
"clean": "rimraf .vite dist out",
"clean:slate": "yarn run clean && rimraf node_modules",
"clean:assets": "rimraf assets/ComfyUI assets/cpython*.tar.gz assets/python assets/override.txt assets/python.tgz assets/requirements.*",
"clean:slate": "yarn run clean && && yarn run clean:assets && rimraf node_modules",
"lint": "eslint --ext .ts,.tsx .",
"lint:fix": "eslint --fix --ext .ts,.tsx .",
"make": "electron-forge make",
"make:assets:amd": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --amd && comfy-cli --here standalone",
"make:assets:nvidia": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --nvidia && comfy-cli --here standalone",
"notarize": "node debug/notarize.js",
"package": "electron-forge package",
"publish": "electron-forge publish",
Expand Down
1 change: 0 additions & 1 deletion scripts/assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ set -e

comfy-cli --skip-prompt --workspace ./ComfyUI install --fast-deps --amd
comfy-cli --workspace ./ComfyUI standalone
rm -rf python cpython*.tar.gz

0 comments on commit 0cc0ec9

Please sign in to comment.